[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcAsmPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Mar 8 22:14:50 PST 2006
Changes in directory llvm/lib/Target/Sparc:
SparcAsmPrinter.cpp updated: 1.56 -> 1.57
---
Log message:
Add support for 'special' llvm globals like debug info and static ctors/dtors.
---
Diffs of the changes: (+6 -1)
SparcAsmPrinter.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/Sparc/SparcAsmPrinter.cpp
diff -u llvm/lib/Target/Sparc/SparcAsmPrinter.cpp:1.56 llvm/lib/Target/Sparc/SparcAsmPrinter.cpp:1.57
--- llvm/lib/Target/Sparc/SparcAsmPrinter.cpp:1.56 Mon Feb 27 14:09:23 2006
+++ llvm/lib/Target/Sparc/SparcAsmPrinter.cpp Thu Mar 9 00:14:35 2006
@@ -239,8 +239,13 @@
const TargetData &TD = TM.getTargetData();
// Print out module-level global variables here.
- for (Module::const_global_iterator I = M.global_begin(), E = M.global_end(); I != E; ++I)
+ 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