From bcec04180363e0bd8c3fe7e9b9ab9de5c486473e Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 31 Mar 2010 18:48:58 +0000 Subject: [PATCH] Comment the changes for r98218 and friends inside the source code. llvm-svn: 100033 --- lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp index c3dcf8e66ea..66bb914edde 100644 --- a/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp @@ -524,6 +524,11 @@ void X86AsmPrinter::EmitEndOfAsmFile(Module &M) { OutStreamer.EmitIntValue(0, 4/*size*/, 0/*addrspace*/); else // Internal to current translation unit. + // + // When we place the LSDA into the TEXT section, the type info + // pointers need to be indirect and pc-rel. We accomplish this by + // using NLPs. However, sometimes the types are local to the file. So + // we need to fill in the value for the NLP in those cases. OutStreamer.EmitValue(MCSymbolRefExpr::Create(MCSym.getPointer(), OutContext), 4/*size*/, 0/*addrspace*/);