diff options
| author | Sam Clegg <sbc@chromium.org> | 2018-02-16 23:46:51 +0000 |
|---|---|---|
| committer | Sam Clegg <sbc@chromium.org> | 2018-02-16 23:46:51 +0000 |
| commit | 6d83fb4c07b61a35c4e0191cdae69f1344c36d2b (patch) | |
| tree | f3547d37bf8ac2600510f003bf1a4aa0f83918c9 | |
| parent | 7c9ad293046996c7db7f76594db7de5ce347e6ac (diff) | |
| download | bcm5719-llvm-6d83fb4c07b61a35c4e0191cdae69f1344c36d2b.tar.gz bcm5719-llvm-6d83fb4c07b61a35c4e0191cdae69f1344c36d2b.zip | |
[WebAssembly] Remove unneeded Chunk::getFileName() method. NFC.
Differential Revision: https://reviews.llvm.org/D43405
llvm-svn: 325414
| -rw-r--r-- | lld/wasm/InputChunks.h | 1 | ||||
| -rw-r--r-- | lld/wasm/MarkLive.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lld/wasm/InputChunks.h b/lld/wasm/InputChunks.h index 1b6c5a05b67..e9d86f0e52b 100644 --- a/lld/wasm/InputChunks.h +++ b/lld/wasm/InputChunks.h @@ -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; diff --git a/lld/wasm/MarkLive.cpp b/lld/wasm/MarkLive.cpp index 296813035b4..1a3372ef1f1 100644 --- a/lld/wasm/MarkLive.cpp +++ b/lld/wasm/MarkLive.cpp @@ -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) { |

