diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-05-17 16:01:32 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-05-17 16:01:32 +0000 |
commit | 712f957cae618caa717dbbeb9740d008dea83eb2 (patch) | |
tree | 23088f4212f9814f8baf1628eadec663a1052bd5 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 1e7d4ab9a37065ab6476bb9b7f3543bbcade07de (diff) | |
download | bcm5719-llvm-712f957cae618caa717dbbeb9740d008dea83eb2.tar.gz bcm5719-llvm-712f957cae618caa717dbbeb9740d008dea83eb2.zip |
Simplify handling of hidden stub.
Since r207518 they are printed exactly like non-hidden stubs on x86 and
since r207517 on ARM.
This means we can use a single set for all stubs in those platforms.
llvm-svn: 269776
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 6664fb366ca..f7ba62ff231 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -686,9 +686,7 @@ const MCExpr *TargetLoweringObjectFileMachO::getTTypeGlobalReference( // Add information about the stub reference to MachOMMI so that the stub // gets emitted by the asmprinter. - MachineModuleInfoImpl::StubValueTy &StubSym = - GV->hasHiddenVisibility() ? MachOMMI.getHiddenGVStubEntry(SSym) : - MachOMMI.getGVStubEntry(SSym); + MachineModuleInfoImpl::StubValueTy &StubSym = MachOMMI.getGVStubEntry(SSym); if (!StubSym.getPointer()) { MCSymbol *Sym = TM.getSymbol(GV, Mang); StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage()); |