diff options
| author | Yilin Chen <sticnarf@gmail.com> | 2021-09-17 20:21:33 +0800 |
|---|---|---|
| committer | Yilin Chen <sticnarf@gmail.com> | 2021-09-17 23:19:38 +0800 |
| commit | d5de680e20def848751cb3c11e1182408112b1d3 (patch) | |
| tree | 2f3d6690a9ab28728ace3146e5e43f941fced211 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 1c03f0d0ba4fee54b7aa458f4d3ad989d8bf7b34 (diff) | |
| download | rust-d5de680e20def848751cb3c11e1182408112b1d3.tar.gz rust-d5de680e20def848751cb3c11e1182408112b1d3.zip | |
Work around invalid DWARF bugs for fat LTO
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp index b7cad1c3ba6..90611193604 100644 --- a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp @@ -1740,7 +1740,7 @@ LLVMRustGetBitcodeSliceFromObjectData(const char *data, // Rewrite all `DICompileUnit` pointers to the `DICompileUnit` specified. See // the comment in `back/lto.rs` for why this exists. extern "C" void -LLVMRustThinLTOGetDICompileUnit(LLVMModuleRef Mod, +LLVMRustLTOGetDICompileUnit(LLVMModuleRef Mod, DICompileUnit **A, DICompileUnit **B) { Module *M = unwrap(Mod); @@ -1758,7 +1758,7 @@ LLVMRustThinLTOGetDICompileUnit(LLVMModuleRef Mod, // Rewrite all `DICompileUnit` pointers to the `DICompileUnit` specified. See // the comment in `back/lto.rs` for why this exists. extern "C" void -LLVMRustThinLTOPatchDICompileUnit(LLVMModuleRef Mod, DICompileUnit *Unit) { +LLVMRustLTOPatchDICompileUnit(LLVMModuleRef Mod, DICompileUnit *Unit) { Module *M = unwrap(Mod); // If the original source module didn't have a `DICompileUnit` then try to |
