summaryrefslogtreecommitdiffstats
path: root/tools/gold
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2016-11-09 01:09:11 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2016-11-09 01:09:11 +0000
commit85f5302a7177e37d80a4506bb913bc5b6f40de72 (patch)
tree8e2ac01fdf20ed0996ab1af1ec898931f22d012f /tools/gold
parent3885b5c47869c7fb3b007236c403efcf1171fece (diff)
Bitcode: Remove the remnants of the BitcodeDiagnosticInfo class.
The BitcodeReader no longer produces BitcodeDiagnosticInfo diagnostics. The only remaining reference was in the gold plugin; the code there has been dead since we stopped producing InvalidBitcodeSignature error codes in r225562. While at it remove the InvalidBitcodeSignature error code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286326 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gold')
-rw-r--r--tools/gold/gold-plugin.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp
index 7c5d48144b2a..22386780be92 100644
--- a/tools/gold/gold-plugin.cpp
+++ b/tools/gold/gold-plugin.cpp
@@ -368,12 +368,6 @@ ld_plugin_status onload(ld_plugin_tv *tv) {
}
static void diagnosticHandler(const DiagnosticInfo &DI) {
- if (const auto *BDI = dyn_cast<BitcodeDiagnosticInfo>(&DI)) {
- std::error_code EC = BDI->getError();
- if (EC == BitcodeError::InvalidBitcodeSignature)
- return;
- }
-
std::string ErrStorage;
{
raw_string_ostream OS(ErrStorage);