summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorStepan Dyatkovskiy <stpworld@narod.ru>2014-03-27 08:38:18 +0000
committerStepan Dyatkovskiy <stpworld@narod.ru>2014-03-27 08:38:18 +0000
commite8747e30efe5ee7f1f1d4586aaea2033ac0c868e (patch)
tree170902533103ce557c4d9ca802846f475bb18198 /llvm/lib
parent49206288159cc79579876e01c1dbe373f5081b64 (diff)
downloadbcm5719-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.cpp18
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!");
OpenPOWER on IntegriCloud