]> granicus.if.org Git - clang/commitdiff
Use the new boolean to StringRef function to generate the proper StringRefs.
authorBill Wendling <isanbard@gmail.com>
Fri, 26 Jul 2013 21:51:11 +0000 (21:51 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 26 Jul 2013 21:51:11 +0000 (21:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187251 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCall.cpp

index 9a38771aa45c204573083daea6e623ef65eda660..b4c710c82c49acd5457ada41a3cfc27f6bd7c40d 100644 (file)
@@ -1061,15 +1061,15 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI,
     }
 
     FuncAttrs.addAttribute("less-precise-fpmad",
-                           CodeGenOpts.LessPreciseFPMAD ? "true" : "false");
+                           llvm::toStringRef(CodeGenOpts.LessPreciseFPMAD));
     FuncAttrs.addAttribute("no-infs-fp-math",
-                           CodeGenOpts.NoInfsFPMath ? "true" : "false");
+                           llvm::toStringRef(CodeGenOpts.NoInfsFPMath));
     FuncAttrs.addAttribute("no-nans-fp-math",
-                           CodeGenOpts.NoNaNsFPMath ? "true" : "false");
+                           llvm::toStringRef(CodeGenOpts.NoNaNsFPMath));
     FuncAttrs.addAttribute("unsafe-fp-math",
-                           CodeGenOpts.UnsafeFPMath ? "true" : "false");
+                           llvm::toStringRef(CodeGenOpts.UnsafeFPMath));
     FuncAttrs.addAttribute("use-soft-float",
-                           CodeGenOpts.SoftFloat ? "true" : "false");
+                           llvm::toStringRef(CodeGenOpts.SoftFloat));
     FuncAttrs.addAttribute("stack-protector-buffer-size",
                            llvm::utostr(CodeGenOpts.SSPBufferSize));
 
@@ -1083,7 +1083,7 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI,
     }
 
     FuncAttrs.addAttribute("no-frame-pointer-elim-non-leaf",
-                           NoFramePointerElimNonLeaf ? "true" : "false");
+                           llvm::toStringRef(NoFramePointerElimNonLeaf));
   }
 
   QualType RetTy = FI.getReturnType();