diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-08-31 12:30:34 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-08-31 12:30:34 +0000 |
| commit | a6c9744a6ce55ec525834f16de2bc2dedfc65524 (patch) | |
| tree | 85dc40c542b4625c294fff574aecee2bc8e8e87e /lld/ELF/Symbols.cpp | |
| parent | 29fa6ab7b11913e8f8ff4a3f39d16f8822fe89d0 (diff) | |
| download | bcm5719-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/Symbols.cpp')
| -rw-r--r-- | lld/ELF/Symbols.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lld/ELF/Symbols.cpp b/lld/ELF/Symbols.cpp index 0d63281580f..7699cb2b520 100644 --- a/lld/ELF/Symbols.cpp +++ b/lld/ELF/Symbols.cpp @@ -81,8 +81,6 @@ static typename ELFT::uint getSymVA(const SymbolBody &Body, case SymbolBody::LazyObjectKind: assert(Body.symbol()->IsUsedInRegularObj && "lazy symbol reached writer"); return 0; - case SymbolBody::DefinedBitcodeKind: - llvm_unreachable("should have been replaced"); } llvm_unreachable("invalid symbol kind"); } @@ -192,16 +190,6 @@ Defined::Defined(Kind K, StringRef Name, uint8_t StOther, uint8_t Type) Defined::Defined(Kind K, uint32_t NameOffset, uint8_t StOther, uint8_t Type) : SymbolBody(K, NameOffset, StOther, Type) {} -DefinedBitcode::DefinedBitcode(StringRef Name, uint8_t StOther, uint8_t Type, - BitcodeFile *F) - : Defined(DefinedBitcodeKind, Name, StOther, Type) { - this->File = F; -} - -bool DefinedBitcode::classof(const SymbolBody *S) { - return S->kind() == DefinedBitcodeKind; -} - Undefined::Undefined(StringRef Name, uint8_t StOther, uint8_t Type, InputFile *File) : SymbolBody(SymbolBody::UndefinedKind, Name, StOther, Type) { |

