diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-11-29 01:43:20 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-11-29 01:43:20 +0000 |
commit | e4cc332729774e20771ee4010a652b4553cb9c16 (patch) | |
tree | babc0d6e416b887676e4bc789bdf69537914bbc5 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | faaa76d1b7a77d0c09a256cecd2ecd0b2474f321 (diff) | |
download | bcm5719-llvm-e4cc332729774e20771ee4010a652b4553cb9c16.tar.gz bcm5719-llvm-e4cc332729774e20771ee4010a652b4553cb9c16.zip |
On MachO, the pointer to the personality function should always be in the
non_lazy_symbol_pointers section (__IMPORT,__pointers). Ignore the 'hidden' part
since that will place it in the wrong section.
<rdar://problem/10443720>
llvm-svn: 145356
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index c43e5b6cec7..7fe164a966b 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -536,9 +536,7 @@ getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, // Add information about the stub reference to MachOMMI so that the stub // gets emitted by the asmprinter. MCSymbol *SSym = getContext().GetOrCreateSymbol(Name.str()); - MachineModuleInfoImpl::StubValueTy &StubSym = - GV->hasHiddenVisibility() ? MachOMMI.getHiddenGVStubEntry(SSym) : - MachOMMI.getGVStubEntry(SSym); + MachineModuleInfoImpl::StubValueTy &StubSym = MachOMMI.getGVStubEntry(SSym); if (StubSym.getPointer() == 0) { MCSymbol *Sym = Mang->getSymbol(GV); StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage()); |