From d0201946ad6fb1ca1a0067bd75896ba347732eb0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 9 May 2006 05:12:53 +0000 Subject: Fix the MASM asmprinter's lies. It does not want to emit code to .text/.data it wants it emitted to _text/_data. llvm-svn: 28185 --- llvm/lib/Target/X86/X86AsmPrinter.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/lib/Target/X86/X86AsmPrinter.h') diff --git a/llvm/lib/Target/X86/X86AsmPrinter.h b/llvm/lib/Target/X86/X86AsmPrinter.h index c4d67b6ac70..b653b34a2f8 100755 --- a/llvm/lib/Target/X86/X86AsmPrinter.h +++ b/llvm/lib/Target/X86/X86AsmPrinter.h @@ -69,6 +69,10 @@ struct X86SharedAsmPrinter : public AsmPrinter { } bool forDarwin; // FIXME: eliminate. + + const char *DefaultTextSection; // "_text" for MASM, ".text" for others. + const char *DefaultDataSection; // "_data" for MASM, ".data" for others. + // Necessary for Darwin to print out the apprioriate types of linker stubs std::set FnStubs, GVStubs, LinkOnceStubs; -- cgit v1.2.3