Skip to content

Commit d11b6ed

Browse files
committedApr 11, 2018
Remove references to old SymbolBody class
Differential Revision: https://reviews.llvm.org/D45400 llvm-svn: 329846
1 parent 381cdf3 commit d11b6ed

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed
 

‎lld/COFF/InputFiles.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ void BitcodeFile::parse() {
465465
} else {
466466
Sym = Symtab->addRegular(this, SymName);
467467
}
468-
SymbolBodies.push_back(Sym);
468+
Symbols.push_back(Sym);
469469
}
470470
Directives = Obj->getCOFFLinkerOpts();
471471
}

‎lld/COFF/InputFiles.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -234,15 +234,15 @@ class BitcodeFile : public InputFile {
234234
public:
235235
explicit BitcodeFile(MemoryBufferRef M) : InputFile(BitcodeKind, M) {}
236236
static bool classof(const InputFile *F) { return F->kind() == BitcodeKind; }
237-
ArrayRef<Symbol *> getSymbols() { return SymbolBodies; }
237+
ArrayRef<Symbol *> getSymbols() { return Symbols; }
238238
MachineTypes getMachineType() override;
239239
static std::vector<BitcodeFile *> Instances;
240240
std::unique_ptr<llvm::lto::InputFile> Obj;
241241

242242
private:
243243
void parse() override;
244244

245-
std::vector<Symbol *> SymbolBodies;
245+
std::vector<Symbol *> Symbols;
246246
};
247247
} // namespace coff
248248

‎lld/ELF/Symbols.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
//
88
//===----------------------------------------------------------------------===//
99
//
10-
// All symbols are handled as SymbolBodies regardless of their types.
11-
// This file defines various types of SymbolBodies.
10+
// This file defines various types of Symbols.
1211
//
1312
//===----------------------------------------------------------------------===//
1413

0 commit comments

Comments
 (0)
Please sign in to comment.