[PATCH] Add methods to get archive file name from member file

Rui Ueyama ruiu at google.com
Thu Feb 5 14:15:33 PST 2015


================
Comment at: include/lld/Core/File.h:65
@@ -62,1 +64,3 @@
+    return *new (_allocator) std::string(
+      (_archivePath + "(" + _path + ")").str());
   }
----------------
shankarke wrote:
> Could we cache this path. 
We could, but the cache needs to be invalidated when _archivePath is updated. This is used only for logging and debugging, I think we don't need to do that.

http://reviews.llvm.org/D7447

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list