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

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 16 12:43:56 PST 2018


sbc100 created this revision.
Herald added subscribers: llvm-commits, sunfish, aheejin, jgravelle-google, dschuff, jfb.

Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D43405

Files:
  wasm/InputChunks.h
  wasm/MarkLive.cpp


Index: wasm/MarkLive.cpp
===================================================================
--- wasm/MarkLive.cpp
+++ 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) {
Index: wasm/InputChunks.h
===================================================================
--- wasm/InputChunks.h
+++ wasm/InputChunks.h
@@ -52,7 +52,6 @@
 
   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;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43405.134695.patch
Type: text/x-patch
Size: 898 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180216/f2d0af9e/attachment.bin>


More information about the llvm-commits mailing list