diff options
author | Stepan Dyatkovskiy <stpworld@narod.ru> | 2014-03-27 08:38:18 +0000 |
---|---|---|
committer | Stepan Dyatkovskiy <stpworld@narod.ru> | 2014-03-27 08:38:18 +0000 |
commit | fee5d2340486fdc88f5795deda4e1719411aad6f (patch) | |
tree | 33e0612a78db9f1cab0b457b561fe8cc585ce215 /lib/Target/ARM/MCTargetDesc | |
parent | a36286cb49d91b76a34a4eb36c21fb48bc429f22 (diff) | |
download | llvm-fee5d2340486fdc88f5795deda4e1719411aad6f.tar.gz llvm-fee5d2340486fdc88f5795deda4e1719411aad6f.tar.bz2 llvm-fee5d2340486fdc88f5795deda4e1719411aad6f.tar.xz |
Rejected r204899 and r204900 due to remaining test failures on cmake-llvm-x86_64-linux buildbot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204901 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/MCTargetDesc')
-rw-r--r-- | lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp b/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp index 6f8b699d4c..3b2ca73aec 100644 --- a/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp +++ b/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp @@ -271,23 +271,7 @@ public: unsigned getSOImmOpValue(const MCInst &MI, unsigned Op, SmallVectorImpl<MCFixup> &Fixups, const MCSubtargetInfo &STI) const { - - const MCOperand &MO = MI.getOperand(Op); - - // We expect MO to be an immediate or an expression, - // if it is an immediate - that's fine, just encode the value. - // Otherwise - create a Fixup. - if (MO.isExpr()) { - const MCExpr *Expr = MO.getExpr(); - // In instruction code this value always encoded as lowest 12 bits, - // so we don't have to perform any specific adjustments and - // can use just 2-bytes fixup. - MCFixupKind Kind = MCFixupKind(FK_Data_2); - Fixups.push_back(MCFixup::Create(0, Expr, Kind, MI.getLoc())); - return 0; - } - - unsigned SoImm = MO.getImm(); + unsigned SoImm = MI.getOperand(Op).getImm(); int SoImmVal = ARM_AM::getSOImmVal(SoImm); assert(SoImmVal != -1 && "Not a valid so_imm value!"); |