]> granicus.if.org Git - clang/commitdiff
These functions don't need external linkage.
authorDan Gohman <gohman@apple.com>
Fri, 29 Oct 2010 22:41:35 +0000 (22:41 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 29 Oct 2010 22:41:35 +0000 (22:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117733 91177308-0d34-0410-b5e6-96231b3b80d8

examples/clang-interpreter/main.cpp

index 2ccba8b24a8557deecba53eb50e019fb562776b6..b274efa8b03cc22461d7f9fe995925eeeee0fdfc 100644 (file)
 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;