diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-07-26 21:51:11 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-07-26 21:51:11 +0000 |
commit | f69f594512cdeeee36938bbae4dbe4a49b07b965 (patch) | |
tree | e5e8502ee06b123008e2512950efa305666edbdc | |
parent | 61b1a3553f90dfebb7b90757282149cc58feea71 (diff) | |
download | bcm5719-llvm-f69f594512cdeeee36938bbae4dbe4a49b07b965.tar.gz bcm5719-llvm-f69f594512cdeeee36938bbae4dbe4a49b07b965.zip |
Use the new boolean to StringRef function to generate the proper StringRefs.
llvm-svn: 187251
-rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index 9a38771aa45..b4c710c82c4 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -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(); |