summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LTO.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-08-31 12:30:34 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-08-31 12:30:34 +0000
commita6c9744a6ce55ec525834f16de2bc2dedfc65524 (patch)
tree85dc40c542b4625c294fff574aecee2bc8e8e87e /lld/ELF/LTO.cpp
parent29fa6ab7b11913e8f8ff4a3f39d16f8822fe89d0 (diff)
downloadbcm5719-llvm-a6c9744a6ce55ec525834f16de2bc2dedfc65524.tar.gz
bcm5719-llvm-a6c9744a6ce55ec525834f16de2bc2dedfc65524.zip
Delete DefinedBitcode.
Given that we almost always want to handle it as DefinedRegular, just use DefinedRegular. llvm-svn: 280226
Diffstat (limited to 'lld/ELF/LTO.cpp')
-rw-r--r--lld/ELF/LTO.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lld/ELF/LTO.cpp b/lld/ELF/LTO.cpp
index af873c6dd7c..f24327a139a 100644
--- a/lld/ELF/LTO.cpp
+++ b/lld/ELF/LTO.cpp
@@ -201,8 +201,10 @@ void BitcodeCompiler::add(BitcodeFile &F) {
handleUndefinedAsmRefs(Sym, GV, AsmUndefinedRefs);
continue;
}
- auto *B = dyn_cast<DefinedBitcode>(S->body());
- if (!B || B->file() != &F)
+ SymbolBody *B = S->body();
+ if (B->kind() != SymbolBody::DefinedRegularKind)
+ continue;
+ if (B->File != &F)
continue;
// We collect the set of symbols we want to internalize here
OpenPOWER on IntegriCloud