diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2010-04-16 04:32:20 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2010-04-16 04:32:20 +0000 |
commit | bb2ec7de9c417bf688c65a0829f523f78f33a67a (patch) | |
tree | 82569052a1883fe91a376e04d078eee2663f2454 /llvm/tools | |
parent | 206d7ce58244c40aaecd64f274992f03018e187c (diff) | |
download | bcm5719-llvm-bb2ec7de9c417bf688c65a0829f523f78f33a67a.tar.gz bcm5719-llvm-bb2ec7de9c417bf688c65a0829f523f78f33a67a.zip |
Revert r64616 which worked around http://gcc.gnu.org/PR42757 , we just didn't
know it at the time.
llvm-svn: 101439
Diffstat (limited to 'llvm/tools')
-rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index df5c5f73474..16e645f8daa 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -340,9 +340,7 @@ static ld_plugin_status all_symbols_read_hook(void) { E = Modules.end(); I != E; ++I) { (*get_symbols)(I->handle, I->syms.size(), &I->syms[0]); for (unsigned i = 0, e = I->syms.size(); i != e; i++) { - if (I->syms[i].resolution == LDPR_PREVAILING_DEF || - (I->syms[i].def == LDPK_COMMON && - I->syms[i].resolution == LDPR_RESOLVED_IR)) { + if (I->syms[i].resolution == LDPR_PREVAILING_DEF) { lto_codegen_add_must_preserve_symbol(cg, I->syms[i].name); anySymbolsPreserved = true; @@ -387,7 +385,7 @@ static ld_plugin_status all_symbols_read_hook(void) { (*message)(LDPL_ERROR, "%s", ErrMsg.c_str()); return LDPS_ERR; } - raw_fd_ostream *objFile = + raw_fd_ostream *objFile = new raw_fd_ostream(uniqueObjPath.c_str(), ErrMsg, raw_fd_ostream::F_Binary); if (!ErrMsg.empty()) { |