llvm.org GIT mirror llvm / 46885de
Fix a silly darwin-only typo introduced during merge. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96289 91177308-0d34-0410-b5e6-96231b3b80d8 Anton Korobeynikov 10 years ago
1 changed file(s) with 6 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
5555
5656 // On Darwin/X86-64, we can reference dwarf symbols with foo@GOTPCREL+4, which
5757 // is an indirect pc-relative reference.
58 if ((Encoding & DW_EH_PE_indirect) &&
59 (Encoding & DW_EH_PE_pcrel)) {
58 if (Encoding & (DW_EH_PE_indirect | DW_EH_PE_pcrel)) {
6059 SmallString<128> Name;
6160 Mang->getNameWithPrefix(Name, GV, false);
62 const MCSymbol *Sym = getContext().CreateSymbol(Name);
63 const MCExpr *Res =
64 X86MCTargetExpr::Create(Sym, X86MCTargetExpr::GOTPCREL, getContext());
65 const MCExpr *Four = MCConstantExpr::Create(4, getContext());
66 return MCBinaryExpr::CreateAdd(Res, Four, getContext());
61 const MCSymbol *Sym = getContext().GetOrCreateSymbol(Name);
62 const MCExpr *Res =
63 X86MCTargetExpr::Create(Sym, X86MCTargetExpr::GOTPCREL, getContext());
64 const MCExpr *Four = MCConstantExpr::Create(4, getContext());
65 return MCBinaryExpr::CreateAdd(Res, Four, getContext());
6766 }
6867
6968 return TargetLoweringObjectFileMachO::