diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2009-02-17 21:08:21 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2009-02-17 21:08:21 +0000 |
commit | f163a957057339163c3dee24bce21911fb4dcdf5 (patch) | |
tree | 44f5ae716b5034c8b15f5720e56f31f8fb21b281 /tools/gold/gold-plugin.cpp | |
parent | 97b6e2cc999b55bc18081a768dbbce589844625a (diff) | |
download | llvm-f163a957057339163c3dee24bce21911fb4dcdf5.tar.gz llvm-f163a957057339163c3dee24bce21911fb4dcdf5.tar.bz2 llvm-f163a957057339163c3dee24bce21911fb4dcdf5.tar.xz |
tools like nm and ar only need register_claim_file and add_symbols. Don't abort
if other hooks are missing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64812 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gold/gold-plugin.cpp')
-rw-r--r-- | tools/gold/gold-plugin.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index 7735af7e05..e2cd6c6d3d 100644 --- a/tools/gold/gold-plugin.cpp +++ b/tools/gold/gold-plugin.cpp @@ -142,11 +142,16 @@ ld_plugin_status onload(ld_plugin_tv *tv) { } } - if (!registeredClaimFile || !registeredAllSymbolsRead || !registeredCleanup || - !add_symbols || !get_symbols || !add_input_file) { - (*message)(LDPL_ERROR, "Not all hooks registered for LLVMgold."); - return LDPS_ERR; - } + if (!registeredClaimFile) + { + (*message)(LDPL_ERROR, "register_claim_file not passed to LLVMgold."); + return LDPS_ERR; + } + if (!add_symbols) + { + (*message)(LDPL_ERROR, "add_symbols not passed to LLVMgold."); + return LDPS_ERR; + } return LDPS_OK; } |