summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYunzhong Gao <Yunzhong_Gao@playstation.sony.com>2015-11-17 20:48:12 +0000
committerYunzhong Gao <Yunzhong_Gao@playstation.sony.com>2015-11-17 20:48:12 +0000
commitfbee89263f95e818aff08f1b2dc25ce0fafaffbb (patch)
treec7a8105fbce18ac5543a6fb2e58f5f013ddaac29
parent06d5618c49d61fc99e2f8471b6e5f858e2566b53 (diff)
downloadbcm5719-llvm-fbee89263f95e818aff08f1b2dc25ce0fafaffbb.tar.gz
bcm5719-llvm-fbee89263f95e818aff08f1b2dc25ce0fafaffbb.zip
Fixing build failures caused by r253367. Sorry for breaking the build.
llvm-svn: 253374
-rw-r--r--lld/COFF/SymbolTable.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lld/COFF/SymbolTable.cpp b/lld/COFF/SymbolTable.cpp
index daac487e6c9..e9f08f0bf5e 100644
--- a/lld/COFF/SymbolTable.cpp
+++ b/lld/COFF/SymbolTable.cpp
@@ -412,9 +412,8 @@ std::vector<ObjectFile *> SymbolTable::createLTOObjects(LTOCodeGenerator *CG) {
#ifdef NDEBUG
DisableVerify = false;
#endif
- std::string ErrMsg;
- if (!CG->optimize(DisableVerify, false, false, false, ErrMsg))
- error(ErrMsg);
+ if (!CG->optimize(DisableVerify, false, false, false))
+ error(""); // optimize() should have emitted any error message.
Objs.resize(Config->LTOJobs);
// Use std::list to avoid invalidation of pointers in OSPtrs.
@@ -425,8 +424,8 @@ std::vector<ObjectFile *> SymbolTable::createLTOObjects(LTOCodeGenerator *CG) {
OSPtrs.push_back(&OSs.back());
}
- if (!CG->compileOptimized(OSPtrs, ErrMsg))
- error(ErrMsg);
+ if (!CG->compileOptimized(OSPtrs))
+ error(""); // compileOptimized() should have emitted any error message.
std::vector<ObjectFile *> ObjFiles;
for (SmallVector<char, 0> &Obj : Objs) {
OpenPOWER on IntegriCloud