llvm.org GIT mirror llvm / 034721e
use Mang->getSymbol() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98578 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
1 changed file(s) with 1 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
3939 // On Darwin/X86-64, we can reference dwarf symbols with foo@GOTPCREL+4, which
4040 // is an indirect pc-relative reference.
4141 if (Encoding & (DW_EH_PE_indirect | DW_EH_PE_pcrel)) {
42 SmallString<128> Name;
43 Mang->getNameWithPrefix(Name, GV, false);
44 const MCSymbol *Sym;
45 if (GV->hasPrivateLinkage())
46 Sym = getContext().GetOrCreateTemporarySymbol(Name);
47 else
48 Sym = getContext().GetOrCreateSymbol(Name);
42 const MCSymbol *Sym = Mang->getSymbol(GV);
4943 const MCExpr *Res =
5044 X86MCTargetExpr::Create(Sym, X86MCTargetExpr::GOTPCREL, getContext());
5145 const MCExpr *Four = MCConstantExpr::Create(4, getContext());