[llvm] 812c22b - [RemoveDIs][wasm] Apply current debug mode to new function protos (#84292)

via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 7 01:28:24 PST 2024


Author: Orlando Cazalet-Hyams
Date: 2024-03-07T09:28:20Z
New Revision: 812c22b2ef5f3f194b8d452fc9f95714dce572f2

URL: https://github.com/llvm/llvm-project/commit/812c22b2ef5f3f194b8d452fc9f95714dce572f2
DIFF: https://github.com/llvm/llvm-project/commit/812c22b2ef5f3f194b8d452fc9f95714dce572f2.diff

LOG: [RemoveDIs][wasm] Apply current debug mode to new function protos (#84292)

This trips the verifier changes added in #83251

Stimulated by llvm/test/MC/WebAssembly/extern-functype-intrinsic.ll

Added: 
    

Modified: 
    llvm/lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp
index 90e81991284710..abcb1d0f16286e 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp
@@ -136,6 +136,7 @@ bool WebAssemblyAddMissingPrototypes::runOnModule(Module &M) {
         Function::Create(NewType, F.getLinkage(), F.getName() + ".fixed_sig");
     NewF->setAttributes(F.getAttributes());
     NewF->removeFnAttr("no-prototype");
+    NewF->IsNewDbgInfoFormat = F.IsNewDbgInfoFormat;
     Replacements.emplace_back(&F, NewF);
   }
 


        


More information about the llvm-commits mailing list