[llvm-commits] CVS: llvm/lib/Target/IA64/IA64AsmPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Mar 8 22:14:51 PST 2006
Changes in directory llvm/lib/Target/IA64:
IA64AsmPrinter.cpp updated: 1.23 -> 1.24
---
Log message:
Add support for 'special' llvm globals like debug info and static ctors/dtors.
---
Diffs of the changes: (+4 -0)
IA64AsmPrinter.cpp | 4 ++++
1 files changed, 4 insertions(+)
Index: llvm/lib/Target/IA64/IA64AsmPrinter.cpp
diff -u llvm/lib/Target/IA64/IA64AsmPrinter.cpp:1.23 llvm/lib/Target/IA64/IA64AsmPrinter.cpp:1.24
--- llvm/lib/Target/IA64/IA64AsmPrinter.cpp:1.23 Thu Feb 16 07:12:57 2006
+++ llvm/lib/Target/IA64/IA64AsmPrinter.cpp Thu Mar 9 00:14:35 2006
@@ -288,6 +288,10 @@
for (Module::const_global_iterator I = M.global_begin(), E = M.global_end();
I != E; ++I)
if (I->hasInitializer()) { // External global require no code
+ // Check to see if this is a special global used by LLVM, if so, emit it.
+ if (EmitSpecialLLVMGlobal(I))
+ continue;
+
O << "\n\n";
std::string name = Mang->getValueName(I);
Constant *C = I->getInitializer();
More information about the llvm-commits
mailing list