Revert "Use callback-based interface to load ThinLTO import data into rustc."

This reverts commit e045a6cd8c.
This commit is contained in:
Michael Woerister 2018-07-16 08:57:49 +02:00
parent 99140df0bd
commit b822e699c3
4 changed files with 94 additions and 56 deletions

View file

@ -1360,7 +1360,7 @@ fn load_thin_lto_imports(sess: &Session) -> lto::ThinLTOImports {
);
if !path.exists() {
return lto::ThinLTOImports::new();
return lto::ThinLTOImports::new_empty();
}
match lto::ThinLTOImports::load_from_file(&path) {