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 | e8747e30efe5ee7f1f1d4586aaea2033ac0c868e (patch) | |
tree | 170902533103ce557c4d9ca802846f475bb18198 /llvm/lib | |
parent | 49206288159cc79579876e01c1dbe373f5081b64 (diff) | |
download | bcm5719-llvm-e8747e30efe5ee7f1f1d4586aaea2033ac0c868e.tar.gz bcm5719-llvm-e8747e30efe5ee7f1f1d4586aaea2033ac0c868e.zip |
Rejected r204899 and r204900 due to remaining test failures on cmake-llvm-x86_64-linux buildbot.
llvm-svn: 204901
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/llvm/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp b/llvm/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp index 6f8b699d4c5..3b2ca73aecd 100644 --- a/llvm/lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp +++ b/llvm/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!"); |