From 7504c283f2f76d697c68474a459d895c2f6b0b83 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Wed, 9 Jul 2008 13:24:38 +0000 Subject: Fix thinko llvm-svn: 53309 --- llvm/lib/Target/X86/X86ATTAsmPrinter.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/Target/X86/X86ATTAsmPrinter.cpp') diff --git a/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp b/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp index a61bb2261d6..4a9002c13b4 100644 --- a/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp +++ b/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp @@ -32,6 +32,8 @@ #include "llvm/Target/TargetOptions.h" using namespace llvm; +#include + STATISTIC(EmittedInsts, "Number of machine instrs printed"); static std::string getPICLabelString(unsigned FnNum, @@ -772,6 +774,9 @@ void X86ATTAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) { if (!GVar->hasInitializer()) return; // External global require no code + GVar->dump(); + std::cout << TAI->SectionForGlobal(GVar) << std::endl; + // Check to see if this is a special global used by LLVM, if so, emit it. if (EmitSpecialLLVMGlobal(GVar)) { if (Subtarget->isTargetDarwin() && -- cgit v1.2.3