diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-03-31 18:47:10 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-03-31 18:47:10 +0000 |
commit | dfd093fd107d0f6047fe646d1ac90ee29c9ea52a (patch) | |
tree | 0bd188f1c9e853b128cf289f172693c7094f4c9d /lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp | |
parent | 12d8dbbebc84a437a4156d1850c5f56fb60883b3 (diff) | |
download | external_llvm-dfd093fd107d0f6047fe646d1ac90ee29c9ea52a.tar.gz external_llvm-dfd093fd107d0f6047fe646d1ac90ee29c9ea52a.tar.bz2 external_llvm-dfd093fd107d0f6047fe646d1ac90ee29c9ea52a.zip |
Comment the changes for r98218 and friends inside the source code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp')
-rw-r--r-- | lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp index 715ddd10f6..5adefd39c5 100644 --- a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp @@ -811,6 +811,11 @@ bool PPCDarwinAsmPrinter::doFinalization(Module &M) { OutStreamer.EmitIntValue(0, isPPC64 ? 8 : 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), isPPC64 ? 8 : 4/*size*/, 0/*addrspace*/); |