[lld] r325414 - [WebAssembly] Remove unneeded Chunk::getFileName() method. NFC.
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 16 15:46:51 PST 2018
Author: sbc
Date: Fri Feb 16 15:46:51 2018
New Revision: 325414
URL: http://llvm.org/viewvc/llvm-project?rev=325414&view=rev
Log:
[WebAssembly] Remove unneeded Chunk::getFileName() method. NFC.
Differential Revision: https://reviews.llvm.org/D43405
Modified:
lld/trunk/wasm/InputChunks.h
lld/trunk/wasm/MarkLive.cpp
Modified: lld/trunk/wasm/InputChunks.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/InputChunks.h?rev=325414&r1=325413&r2=325414&view=diff
==============================================================================
--- lld/trunk/wasm/InputChunks.h (original)
+++ lld/trunk/wasm/InputChunks.h Fri Feb 16 15:46:51 2018
@@ -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;
Modified: lld/trunk/wasm/MarkLive.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/MarkLive.cpp?rev=325414&r1=325413&r2=325414&view=diff
==============================================================================
--- lld/trunk/wasm/MarkLive.cpp (original)
+++ lld/trunk/wasm/MarkLive.cpp Fri Feb 16 15:46:51 2018
@@ -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) {
More information about the llvm-commits
mailing list