summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund2018-01-24 22:33:26 +0000
committerAndres Freund2018-01-24 22:33:29 +0000
commitbb857e1dabb2177b6e45c21b743b9eb345d9abab (patch)
tree9f71f75b73349932e6921f595de54b9c194910d0
parenta6fb22691816e5e0bac06aaaeac0a47484d81376 (diff)
fixup! LLVM JIT infrastructure.
Reported-By: Pierre Ducroquet Discussion: 3802608.mkVm2M9brZ@peanuts2
-rw-r--r--src/backend/lib/llvmjit_wrap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/lib/llvmjit_wrap.cpp b/src/backend/lib/llvmjit_wrap.cpp
index f827e4dbd8..0d2567302f 100644
--- a/src/backend/lib/llvmjit_wrap.cpp
+++ b/src/backend/lib/llvmjit_wrap.cpp
@@ -29,7 +29,6 @@ extern "C"
#include "llvm-c/Core.h"
#include "llvm-c/BitReader.h"
-#include "llvm-c/DebugInfo.h"
#include <fcntl.h>
#include <sys/mman.h>
@@ -50,6 +49,7 @@ extern "C"
#include "llvm/Analysis/ModuleSummaryAnalysis.h"
#include "llvm/Bitcode/BitcodeReader.h"
#include "llvm/IR/CallSite.h"
+#include "llvm/IR/DebugInfo.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/ModuleSummaryIndex.h"
#include "llvm/Linker/IRMover.h"
@@ -476,7 +476,7 @@ load_module(llvm::StringRef Identifier)
* code. Until that changes, not much point in wasting memory and cycles
* on processing debuginfo.
*/
- LLVMStripModuleDebugInfo(mod);
+ llvm::StripDebugInfo(*llvm::unwrap(mod));
return std::unique_ptr<llvm::Module>(llvm::unwrap(mod));
}