summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/wasm/InputChunks.h1
-rw-r--r--lld/wasm/MarkLive.cpp2
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) {
OpenPOWER on IntegriCloud