Skip to content

Commit

Permalink
async-llvm(29): Adapt run-make/llvm-phase test case to LLVM module no…
Browse files Browse the repository at this point in the history
…t being available in memory.
  • Loading branch information
michaelwoerister committed Aug 1, 2017
1 parent b8d4413 commit 6468cad
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/test/run-make/llvm-phase/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@ impl<'a> CompilerCalls<'a> for JitCalls {
state.session.abort_if_errors();
let trans = state.trans.unwrap();
assert_eq!(trans.modules.len(), 1);
let rs_llmod = match trans.modules[0].source {
ModuleSource::Preexisting(_) => unimplemented!(),
ModuleSource::Translated(llvm) => llvm.llmod,
};
unsafe { rustc_llvm::LLVMDumpModule(rs_llmod) };
println!("name of compiled module = {}", trans.modules[0].name);
});
cc
}
Expand Down

0 comments on commit 6468cad

Please sign in to comment.