[llvm] r196846 - Simplify further.
Rafael Espindola
rafael.espindola at gmail.com
Mon Dec 9 16:15:35 PST 2013
Author: rafael
Date: Mon Dec 9 18:15:35 2013
New Revision: 196846
URL: http://llvm.org/viewvc/llvm-project?rev=196846&view=rev
Log:
Simplify further.
Thanks to Jim Grosbach for noticing it.
Modified:
llvm/trunk/lib/Target/ARM/ARMTargetMachine.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMTargetMachine.cpp?rev=196846&r1=196845&r2=196846&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMTargetMachine.cpp Mon Dec 9 18:15:35 2013
@@ -75,24 +75,16 @@ static std::string computeDataLayout(ARM
else
Ret += "-f64:64:64-i64:64:64";
- if (ST.isThumb()) {
- if (ST.isAPCS_ABI())
- Ret += "-i16:16:32-i8:8:32-i1:8:32";
- else
- Ret += "-i16:16:32-i8:8:32-i1:8:32";
- }
+ if (ST.isThumb())
+ Ret += "-i16:16:32-i8:8:32-i1:8:32";
if (ST.isAPCS_ABI())
Ret += "-v128:32:128-v64:32:64";
else
Ret += "-v128:64:128-v64:64:64";
- if (ST.isThumb()) {
- if (ST.isAPCS_ABI())
- Ret += "-a:0:32";
- else
- Ret += "-a:0:32";
- }
+ if (ST.isThumb())
+ Ret += "-a:0:32";
Ret += "-n32";
More information about the llvm-commits
mailing list