projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a76e3fc
)
tidy up
author
Chris Lattner
<sabre@nondot.org>
Wed, 16 Sep 2009 05:25:43 +0000
(
05:25
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 16 Sep 2009 05:25:43 +0000
(
05:25
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82011
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
index 4085f9844186a19f4b286fb122cd7bfdcccf3541..160d298be33fb5a1d2e92c91211f3c4c5b5fdeb0 100644
(file)
--- a/
lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
+++ b/
lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
@@
-732,11
+732,9
@@
void X86ATTAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
}
void X86ATTAsmPrinter::PrintGlobalVariable(const GlobalVariable* GVar) {
- const TargetData *TD = TM.getTargetData();
-
if (!GVar->hasInitializer())
return; // External global require no code
-
+
// Check to see if this is a special global used by LLVM, if so, emit it.
if (EmitSpecialLLVMGlobal(GVar)) {
if (Subtarget->isTargetDarwin() &&
@@
-748,6
+746,8
@@
void X86ATTAsmPrinter::PrintGlobalVariable(const GlobalVariable* GVar) {
}
return;
}
+
+ const TargetData *TD = TM.getTargetData();
std::string name = Mang->getMangledName(GVar);
Constant *C = GVar->getInitializer();