r187251 - Use the new boolean to StringRef function to generate the proper StringRefs.

Bill Wendling isanbard at gmail.com
Fri Jul 26 14:51:12 PDT 2013


Author: void
Date: Fri Jul 26 16:51:11 2013
New Revision: 187251

URL: http://llvm.org/viewvc/llvm-project?rev=187251&view=rev
Log:
Use the new boolean to StringRef function to generate the proper StringRefs.

Modified:
    cfe/trunk/lib/CodeGen/CGCall.cpp

Modified: cfe/trunk/lib/CodeGen/CGCall.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=187251&r1=187250&r2=187251&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCall.cpp Fri Jul 26 16:51:11 2013
@@ -1061,15 +1061,15 @@ void CodeGenModule::ConstructAttributeLi
     }
 
     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::ConstructAttributeLi
     }
 
     FuncAttrs.addAttribute("no-frame-pointer-elim-non-leaf",
-                           NoFramePointerElimNonLeaf ? "true" : "false");
+                           llvm::toStringRef(NoFramePointerElimNonLeaf));
   }
 
   QualType RetTy = FI.getReturnType();





More information about the cfe-commits mailing list