forked from OSchip/llvm-project
[MCJIT] Migrate function attribute "no-frame-pointer-elim" to "frame-pointer"
This commit is contained in:
parent
1ac7c50ded
commit
583ef13f0b
|
@ -183,13 +183,13 @@ LLVMBool LLVMCreateMCJITCompilerForModule(
|
|||
std::unique_ptr<Module> Mod(unwrap(M));
|
||||
|
||||
if (Mod)
|
||||
// Set function attribute "no-frame-pointer-elim" based on
|
||||
// Set function attribute "frame-pointer" based on
|
||||
// NoFramePointerElim.
|
||||
for (auto &F : *Mod) {
|
||||
auto Attrs = F.getAttributes();
|
||||
StringRef Value(options.NoFramePointerElim ? "true" : "false");
|
||||
StringRef Value = options.NoFramePointerElim ? "all" : "none";
|
||||
Attrs = Attrs.addAttribute(F.getContext(), AttributeList::FunctionIndex,
|
||||
"no-frame-pointer-elim", Value);
|
||||
"frame-pointer", Value);
|
||||
F.setAttributes(Attrs);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue