From d11b6edfc8d870a53995a195c801f5c305e19b1a Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Wed, 11 Apr 2018 19:52:53 +0000 Subject: [PATCH] Remove references to old SymbolBody class Differential Revision: https://reviews.llvm.org/D45400 llvm-svn: 329846 --- lld/COFF/InputFiles.cpp | 2 +- lld/COFF/InputFiles.h | 4 ++-- lld/ELF/Symbols.h | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lld/COFF/InputFiles.cpp b/lld/COFF/InputFiles.cpp index 78bfe34..1c4fb32 100644 --- a/lld/COFF/InputFiles.cpp +++ b/lld/COFF/InputFiles.cpp @@ -465,7 +465,7 @@ void BitcodeFile::parse() { } else { Sym = Symtab->addRegular(this, SymName); } - SymbolBodies.push_back(Sym); + Symbols.push_back(Sym); } Directives = Obj->getCOFFLinkerOpts(); } diff --git a/lld/COFF/InputFiles.h b/lld/COFF/InputFiles.h index 3ee5780..e2b7904 100644 --- a/lld/COFF/InputFiles.h +++ b/lld/COFF/InputFiles.h @@ -234,7 +234,7 @@ class BitcodeFile : public InputFile { public: explicit BitcodeFile(MemoryBufferRef M) : InputFile(BitcodeKind, M) {} static bool classof(const InputFile *F) { return F->kind() == BitcodeKind; } - ArrayRef getSymbols() { return SymbolBodies; } + ArrayRef getSymbols() { return Symbols; } MachineTypes getMachineType() override; static std::vector Instances; std::unique_ptr Obj; @@ -242,7 +242,7 @@ public: private: void parse() override; - std::vector SymbolBodies; + std::vector Symbols; }; } // namespace coff diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h index 81c85aa..cd6fc68 100644 --- a/lld/ELF/Symbols.h +++ b/lld/ELF/Symbols.h @@ -7,8 +7,7 @@ // //===----------------------------------------------------------------------===// // -// All symbols are handled as SymbolBodies regardless of their types. -// This file defines various types of SymbolBodies. +// This file defines various types of Symbols. // //===----------------------------------------------------------------------===// -- 2.7.4