aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMMCInstLower.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-09-16 03:45:21 +0000
committerJim Grosbach <grosbach@apple.com>2010-09-16 03:45:21 +0000
commita8e47b3319db56675f8e80f4bb015c163110b902 (patch)
tree7c7cb8aed315b557095d15dc17c76f6af6fe4529 /lib/Target/ARM/ARMMCInstLower.cpp
parentf969868271f25df126047d0844f45b5e3b844b6d (diff)
downloadexternal_llvm-a8e47b3319db56675f8e80f4bb015c163110b902.zip
external_llvm-a8e47b3319db56675f8e80f4bb015c163110b902.tar.gz
external_llvm-a8e47b3319db56675f8e80f4bb015c163110b902.tar.bz2
store MC FP immediates as a double instead of as an APFloat, thus avoiding an
unnecessary dtor for MCOperand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114064 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMMCInstLower.cpp')
-rw-r--r--lib/Target/ARM/ARMMCInstLower.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMMCInstLower.cpp b/lib/Target/ARM/ARMMCInstLower.cpp
index b26d327..8774010 100644
--- a/lib/Target/ARM/ARMMCInstLower.cpp
+++ b/lib/Target/ARM/ARMMCInstLower.cpp
@@ -157,7 +157,8 @@ void ARMMCInstLower::Lower(const MachineInstr *MI, MCInst &OutMI) const {
MO.getBlockAddress()));
break;
case MachineOperand::MO_FPImmediate:
- MCOp = MCOperand::CreateFPImm(MO.getFPImm()->getValueAPF());
+ MCOp =
+ MCOperand::CreateFPImm(MO.getFPImm()->getValueAPF().convertToDouble());
break;
}