llvm-svn: 82011
This commit is contained in:
Chris Lattner 2009-09-16 05:25:43 +00:00
parent 46dcaadb4a
commit 273215733c
1 changed files with 3 additions and 3 deletions

View File

@ -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();