[cfe-commits] r117733 - /cfe/trunk/examples/clang-interpreter/main.cpp
Dan Gohman
gohman at apple.com
Fri Oct 29 15:41:35 PDT 2010
Author: djg
Date: Fri Oct 29 17:41:35 2010
New Revision: 117733
URL: http://llvm.org/viewvc/llvm-project?rev=117733&view=rev
Log:
These functions don't need external linkage.
Modified:
cfe/trunk/examples/clang-interpreter/main.cpp
Modified: cfe/trunk/examples/clang-interpreter/main.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/clang-interpreter/main.cpp?rev=117733&r1=117732&r2=117733&view=diff
==============================================================================
--- cfe/trunk/examples/clang-interpreter/main.cpp (original)
+++ cfe/trunk/examples/clang-interpreter/main.cpp Fri Oct 29 17:41:35 2010
@@ -32,14 +32,14 @@
using namespace clang;
using namespace clang::driver;
-llvm::sys::Path GetExecutablePath(const char *Argv0) {
+static 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;
return llvm::sys::Path::GetMainExecutable(Argv0, MainAddr);
}
-int Execute(llvm::Module *Mod, char * const *envp) {
+static int Execute(llvm::Module *Mod, char * const *envp) {
llvm::InitializeNativeTarget();
std::string Error;
More information about the cfe-commits
mailing list