[mips] [IAS] Add support for the .set oddspreg/nooddspreg directives.
[oota-llvm.git] / lib / Target / Mips / MCTargetDesc / MipsABIFlagsSection.h
index c14391151ef0c7b91233298cf69177a1dae1bba9..b078cd30a87bd2d713498ee86a9108c497b0a574 100644 (file)
@@ -11,6 +11,7 @@
 #define LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSABIFLAGSSECTION_H
 
 #include "llvm/MC/MCStreamer.h"
+#include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/MipsABIFlags.h"
 
 namespace llvm {
@@ -131,7 +132,7 @@ public:
 
   template <class PredicateLibrary>
   void setCPR1SizeFromPredicates(const PredicateLibrary &P) {
-    if (P.abiUsesSoftFloat())
+    if (P.useSoftFloat())
       CPR1Size = Mips::AFL_REG_NONE;
     else if (P.hasMSA())
       CPR1Size = Mips::AFL_REG_128;
@@ -159,7 +160,7 @@ public:
     Is32BitABI = P.isABI_O32();
 
     FpABI = FpABIKind::ANY;
-    if (P.abiUsesSoftFloat())
+    if (P.useSoftFloat())
       FpABI = FpABIKind::SOFT;
     else if (P.isABI_N32() || P.isABI_N64())
       FpABI = FpABIKind::S64;