[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Mar 8 22:14:51 PST 2006
Changes in directory llvm/lib/Target/Alpha:
AlphaAsmPrinter.cpp updated: 1.32 -> 1.33
---
Log message:
Add support for 'special' llvm globals like debug info and static ctors/dtors.
---
Diffs of the changes: (+4 -0)
AlphaAsmPrinter.cpp | 4 ++++
1 files changed, 4 insertions(+)
Index: llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
diff -u llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.32 llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.33
--- llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.32 Mon Feb 27 04:29:04 2006
+++ llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp Thu Mar 9 00:14:35 2006
@@ -231,6 +231,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