summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAsmInfoDarwin.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-05-01 03:50:49 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-05-01 03:50:49 +0000
commitfd0578532417ca2ac3210d4b5b0ab05cea4d1ce1 (patch)
tree9b1346527e214253dc2f879de04d14cab5e55e31 /llvm/lib/MC/MCAsmInfoDarwin.cpp
parentca87290f367a67317f34deeef83e59fe60ee386f (diff)
downloadbcm5719-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.cpp11
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);
-}
OpenPOWER on IntegriCloud