From 583ef13f0be7b0045f9508dfceee17ab4ef4b1ea Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 24 Dec 2019 17:10:32 -0800 Subject: [PATCH] [MCJIT] Migrate function attribute "no-frame-pointer-elim" to "frame-pointer" --- llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp b/llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp index c741fe2..ff1e805 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp +++ b/llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp @@ -183,13 +183,13 @@ LLVMBool LLVMCreateMCJITCompilerForModule( std::unique_ptr 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); } -- 2.7.4