diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-03-09 06:14:35 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-03-09 06:14:35 +0000 |
| commit | 04f96748574d447ea7bc6344a56f7e652d14f4f9 (patch) | |
| tree | 02e11392006302c6554c06f55753a2143452ba02 /lib/Target/Alpha/AlphaAsmPrinter.cpp | |
| parent | e2b59d2760a4f72c84c262af67642ba09e91bfd1 (diff) | |
Add support for 'special' llvm globals like debug info and static ctors/dtors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26628 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaAsmPrinter.cpp')
| -rw-r--r-- | lib/Target/Alpha/AlphaAsmPrinter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/Alpha/AlphaAsmPrinter.cpp b/lib/Target/Alpha/AlphaAsmPrinter.cpp index ad42ca3cd1..6f45fb5497 100644 --- a/lib/Target/Alpha/AlphaAsmPrinter.cpp +++ b/lib/Target/Alpha/AlphaAsmPrinter.cpp @@ -231,6 +231,10 @@ bool AlphaAsmPrinter::doFinalization(Module &M) { 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(); |
