unique_ptrify IRObjectFile::createIRObjectFile

I took a guess at the changes to the gold plugin, because that doesn't
seem to build by default for me. Not sure what dependencies I might be
missing for that.

llvm-svn: 217056
This commit is contained in:
David Blaikie
2014-09-03 17:59:23 +00:00
parent 94e46f3eb8
commit 10a27df8ff
4 changed files with 7 additions and 8 deletions

View File

@@ -33,8 +33,7 @@ ErrorOr<std::unique_ptr<SymbolicFile>> SymbolicFile::createSymbolicFile(
switch (Type) {
case sys::fs::file_magic::bitcode:
if (Context)
return ErrorOr<std::unique_ptr<SymbolicFile>>(
IRObjectFile::createIRObjectFile(Object, *Context));
return IRObjectFile::createIRObjectFile(Object, *Context);
// Fallthrough
case sys::fs::file_magic::unknown:
case sys::fs::file_magic::archive: