diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-05-01 03:50:49 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-05-01 03:50:49 +0000 |
commit | fd0578532417ca2ac3210d4b5b0ab05cea4d1ce1 (patch) | |
tree | 9b1346527e214253dc2f879de04d14cab5e55e31 /llvm/lib/MC/MCAsmInfoDarwin.cpp | |
parent | ca87290f367a67317f34deeef83e59fe60ee386f (diff) | |
download | bcm5719-llvm-fd0578532417ca2ac3210d4b5b0ab05cea4d1ce1.tar.gz bcm5719-llvm-fd0578532417ca2ac3210d4b5b0ab05cea4d1ce1.zip |
Simplify the handling of pcrel relocations on ELF. Now we do the right thing
for all symbol differences and can drop the old EmitPCRelSymbolValue
method.
This also make getExprForFDESymbol on ELF equal to the one on MachO, and it
can be made non-virtual.
llvm-svn: 130634
Diffstat (limited to 'llvm/lib/MC/MCAsmInfoDarwin.cpp')
-rw-r--r-- | llvm/lib/MC/MCAsmInfoDarwin.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/MC/MCAsmInfoDarwin.cpp b/llvm/lib/MC/MCAsmInfoDarwin.cpp index fea1548f462..4dd1d44af5d 100644 --- a/llvm/lib/MC/MCAsmInfoDarwin.cpp +++ b/llvm/lib/MC/MCAsmInfoDarwin.cpp @@ -59,14 +59,3 @@ MCAsmInfoDarwin::MCAsmInfoDarwin() { DwarfUsesAbsoluteLabelForStmtList = false; DwarfUsesLabelOffsetForRanges = false; } - -const MCExpr * -MCAsmInfoDarwin::getExprForFDESymbol(const MCSymbol *Sym, - MCStreamer &Streamer) const { - MCContext &Context = Streamer.getContext(); - const MCExpr *Res = MCSymbolRefExpr::Create(Sym, Context); - MCSymbol *PCSym = Context.CreateTempSymbol(); - Streamer.EmitLabel(PCSym); - const MCExpr *PC = MCSymbolRefExpr::Create(PCSym, Context); - return MCBinaryExpr::CreateSub(Res, PC, Context); -} |