mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 18:11:19 +00:00
Use the new boolean to StringRef function to generate the proper StringRefs.
llvm-svn: 187251
This commit is contained in:
parent
61b1a3553f
commit
f69f594512
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user