[WebAssembly] Remove unneeded Chunk::getFileName() method. NFC.

Differential Revision: https://reviews.llvm.org/D43405

llvm-svn: 325414
This commit is contained in:
Sam Clegg 2018-02-16 23:46:51 +00:00
parent 7c9ad29304
commit 6d83fb4c07
2 changed files with 1 additions and 2 deletions

View File

@ -52,7 +52,6 @@ public:
uint32_t getOutputOffset() const { return OutputOffset; }
ArrayRef<WasmRelocation> getRelocations() const { return Relocations; }
StringRef getFileName() const { return File->getName(); }
virtual StringRef getComdat() const = 0;
virtual StringRef getName() const = 0;

View File

@ -94,7 +94,7 @@ void lld::wasm::markLive() {
auto CheckChunk = [](const InputChunk *C) {
if (!C->Live)
message("removing unused section '" + C->getName() + "' in file '" +
C->getFileName() + "'");
C->File->getName() + "'");
};
for (const ObjFile *Obj : Symtab->ObjectFiles) {