gollvm: resolve arg[0] path in -v/-### trace output
The go command takes advantage of the -### compiler output to
derive the path to the compiler executable, as part of computing
a checksum / buildid for the compilation. To help with this,
make sure that the -v / -### output emits a resolved executable
path and not just the argv[0] value.
Change-Id: Iab5faa7da57c479e1fb083d4d3797e5ff3a3c93f
Reviewed-on: https://go-review.googlesource.com/110625
Reviewed-by: Ian Lance Taylor <iant@golang.org>
diff --git a/driver/Driver.h b/driver/Driver.h
index 3b3bf9f..a69d888 100644
--- a/driver/Driver.h
+++ b/driver/Driver.h
@@ -80,6 +80,7 @@
llvm::opt::InputArgList &args() { return args_; }
llvm::opt::OptTable &opts() { return *opts_; }
const char *progname() const { return progname_; }
+ const std::string &executablePath() const { return executablePath_; }
// Name of driver (program invoked)
std::string name();