summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAssembler.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-01-18 00:23:57 +0000
committerJim Grosbach <grosbach@apple.com>2012-01-18 00:23:57 +0000
commit3b50c9ec7f87c07a8002eb442513c6114f4a141f (patch)
tree568b0c429c873bf8929f5a682b57f245f1eaf8d6 /llvm/lib/MC/MCAssembler.cpp
parentf43b599550333f05c6cff87d211c41215cb5716f (diff)
downloadbcm5719-llvm-3b50c9ec7f87c07a8002eb442513c6114f4a141f.tar.gz
bcm5719-llvm-3b50c9ec7f87c07a8002eb442513c6114f4a141f.zip
Move some ARM specific MCAssmebler bits into the ARMAsmBackend.
llvm-svn: 148364
Diffstat (limited to 'llvm/lib/MC/MCAssembler.cpp')
-rw-r--r--llvm/lib/MC/MCAssembler.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp
index 1cb97ce61fc..e3cfae84ee0 100644
--- a/llvm/lib/MC/MCAssembler.cpp
+++ b/llvm/lib/MC/MCAssembler.cpp
@@ -273,13 +273,10 @@ bool MCAssembler::evaluateFixup(const MCAsmLayout &Layout,
Value = Target.getConstant();
- bool IsThumb = false;
if (const MCSymbolRefExpr *A = Target.getSymA()) {
const MCSymbol &Sym = A->getSymbol().AliasedSymbol();
if (Sym.isDefined())
Value += Layout.getSymbolOffset(&getSymbolData(Sym));
- if (isThumbFunc(&Sym))
- IsThumb = true;
}
if (const MCSymbolRefExpr *B = Target.getSymB()) {
const MCSymbol &Sym = B->getSymbol().AliasedSymbol();
@@ -302,12 +299,8 @@ bool MCAssembler::evaluateFixup(const MCAsmLayout &Layout,
Value -= Offset;
}
- // ARM fixups based from a thumb function address need to have the low
- // bit set. The actual value is always at least 16-bit aligned, so the
- // low bit is normally clear and available for use as an ISA flag for
- // interworking.
- if (IsThumb)
- Value |= 1;
+ // Let the backend adjust the fixup value if necessary.
+ Backend.processFixupValue(*this, Layout, Fixup, DF, Target, Value);
return IsResolved;
}
OpenPOWER on IntegriCloud