Skip to content

Commit 6ed5db8

Browse files
committed
[LLVM-3.9] Specify that we are using the legacy interface
LLVM pass manager infrastructure is currently getting rewritten to be more flexible, but the rewrite isn't complete yet.
1 parent fba1f8f commit 6ed5db8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rustllvm/PassWrapper.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ LLVMRustAddLibraryInfo(LLVMPassManagerRef PMB,
267267
// similar code in clang's BackendUtil.cpp file.
268268
extern "C" void
269269
LLVMRustRunFunctionPassManager(LLVMPassManagerRef PM, LLVMModuleRef M) {
270-
FunctionPassManager *P = unwrap<FunctionPassManager>(PM);
270+
llvm::legacy::FunctionPassManager *P = unwrap<llvm::legacy::FunctionPassManager>(PM);
271271
P->doInitialization();
272272
for (Module::iterator I = unwrap(M)->begin(),
273273
E = unwrap(M)->end(); I != E; ++I)
@@ -294,7 +294,7 @@ LLVMRustWriteOutputFile(LLVMTargetMachineRef Target,
294294
LLVMModuleRef M,
295295
const char *path,
296296
TargetMachine::CodeGenFileType FileType) {
297-
PassManager *PM = unwrap<PassManager>(PMR);
297+
llvm::legacy::PassManager *PM = unwrap<llvm::legacy::PassManager>(PMR);
298298

299299
std::string ErrorInfo;
300300
std::error_code EC;
@@ -320,7 +320,7 @@ extern "C" void
320320
LLVMRustPrintModule(LLVMPassManagerRef PMR,
321321
LLVMModuleRef M,
322322
const char* path) {
323-
PassManager *PM = unwrap<PassManager>(PMR);
323+
llvm::legacy::PassManager *PM = unwrap<llvm::legacy::PassManager>(PMR);
324324
std::string ErrorInfo;
325325

326326
std::error_code EC;

0 commit comments

Comments
 (0)