[PATCH] D13978: [X86] Support MCU psABI when marking inregs

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 23 12:34:27 PDT 2015

rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.

lgtm with the suggested simplification.

Comment at: lib/CodeGen/TargetInfo.cpp:857
@@ -854,3 +856,3 @@
-      IsSoftFloatABI(SoftFloatABI),
+      IsSoftFloatABI(SoftFloatABI), IsMCUABI(MCUABI),
       DefaultNumRegisterParameters(NumRegisterParameters) {}
Rather than taking this as a parameter, how about initializing IsMCUABI with `getTarget().getTriple().isEnvironmentIAMCU()`? Then you can drop a level of parameters.


More information about the cfe-commits mailing list