Index: lld/trunk/wasm/InputChunks.h =================================================================== --- lld/trunk/wasm/InputChunks.h +++ lld/trunk/wasm/InputChunks.h @@ -52,7 +52,6 @@ uint32_t getOutputOffset() const { return OutputOffset; } ArrayRef getRelocations() const { return Relocations; } - StringRef getFileName() const { return File->getName(); } virtual StringRef getComdat() const = 0; virtual StringRef getName() const = 0; Index: lld/trunk/wasm/MarkLive.cpp =================================================================== --- lld/trunk/wasm/MarkLive.cpp +++ lld/trunk/wasm/MarkLive.cpp @@ -94,7 +94,7 @@ 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) {