*** empty log message ***

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4343 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nick Hildenbrandt committed 2002-10-28 19:05:12 +00:00
1 parent fcffe865f9
commit 50de36a41d
2 files changed
+26

No files matched your search

+13
View File
@@ -575,6 +575,19 @@ void CWriter::printModule(Module *M) {
Out << "extern void * malloc(size_t);\n\n";
}
// Output the global variable declerations
if (!M->gempty()) {
Out << "\n\n/* Global Variable Declerations */\n";
for (Module::giterator I = M->gbegin(), E = M->gend(); I != E; ++I)
if (!I->isExternal()) {
Out << "extern ";
printType(I->getType()->getElementType(), getValueName(I));
Out << ";\n";
}
}
// Output the global variable definitions and contents...
if (!M->gempty()) {
Out << "\n\n/* Global Variable Definitions and Initialization */\n";
+13
View File
@@ -575,6 +575,19 @@ void CWriter::printModule(Module *M) {
Out << "extern void * malloc(size_t);\n\n";
}
// Output the global variable declerations
if (!M->gempty()) {
Out << "\n\n/* Global Variable Declerations */\n";
for (Module::giterator I = M->gbegin(), E = M->gend(); I != E; ++I)
if (!I->isExternal()) {
Out << "extern ";
printType(I->getType()->getElementType(), getValueName(I));
Out << ";\n";
}
}
// Output the global variable definitions and contents...
if (!M->gempty()) {
Out << "\n\n/* Global Variable Definitions and Initialization */\n";