aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/clang-interpreter/main.cpp2
-rw-r--r--tools/driver/driver.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/examples/clang-interpreter/main.cpp b/examples/clang-interpreter/main.cpp
index b274efa8b0..2866c44c3c 100644
--- a/examples/clang-interpreter/main.cpp
+++ b/examples/clang-interpreter/main.cpp
@@ -32,7 +32,7 @@
using namespace clang;
using namespace clang::driver;
-static llvm::sys::Path GetExecutablePath(const char *Argv0) {
+llvm::sys::Path GetExecutablePath(const char *Argv0) {
// This just needs to be some symbol in the binary; C++ doesn't
// allow taking the address of ::main however.
void *MainAddr = (void*) (intptr_t) GetExecutablePath;
diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp
index 0bd0c60946..c1172817ed 100644
--- a/tools/driver/driver.cpp
+++ b/tools/driver/driver.cpp
@@ -36,8 +36,7 @@
using namespace clang;
using namespace clang::driver;
-static llvm::sys::Path GetExecutablePath(const char *Argv0,
- bool CanonicalPrefixes) {
+llvm::sys::Path GetExecutablePath(const char *Argv0, bool CanonicalPrefixes) {
if (!CanonicalPrefixes)
return llvm::sys::Path(Argv0);