File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ LLVMRustAddLibraryInfo(LLVMPassManagerRef PMB,
267
267
// similar code in clang's BackendUtil.cpp file.
268
268
extern " C" void
269
269
LLVMRustRunFunctionPassManager (LLVMPassManagerRef PM, LLVMModuleRef M) {
270
- FunctionPassManager *P = unwrap<FunctionPassManager>(PM);
270
+ llvm::legacy:: FunctionPassManager *P = unwrap<llvm::legacy:: FunctionPassManager>(PM);
271
271
P->doInitialization ();
272
272
for (Module::iterator I = unwrap (M)->begin (),
273
273
E = unwrap (M)->end (); I != E; ++I)
@@ -294,7 +294,7 @@ LLVMRustWriteOutputFile(LLVMTargetMachineRef Target,
294
294
LLVMModuleRef M,
295
295
const char *path,
296
296
TargetMachine::CodeGenFileType FileType) {
297
- PassManager *PM = unwrap<PassManager>(PMR);
297
+ llvm::legacy:: PassManager *PM = unwrap<llvm::legacy:: PassManager>(PMR);
298
298
299
299
std::string ErrorInfo;
300
300
std::error_code EC;
@@ -320,7 +320,7 @@ extern "C" void
320
320
LLVMRustPrintModule (LLVMPassManagerRef PMR,
321
321
LLVMModuleRef M,
322
322
const char * path) {
323
- PassManager *PM = unwrap<PassManager>(PMR);
323
+ llvm::legacy:: PassManager *PM = unwrap<llvm::legacy:: PassManager>(PMR);
324
324
std::string ErrorInfo;
325
325
326
326
std::error_code EC;
You can’t perform that action at this time.
0 commit comments