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

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


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-webassembly

Author: Orlando Cazalet-Hyams (OCHyams)

<details>
<summary>Changes</summary>

This trips the verifier changes added in #<!-- -->83251

---
Full diff: https://github.com/llvm/llvm-project/pull/84292.diff


1 Files Affected:

- (modified) llvm/lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp (+1) 


``````````diff
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);
   }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/84292


More information about the llvm-commits mailing list