aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/CIndex/CIndex.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/CIndex/CIndex.cpp b/tools/CIndex/CIndex.cpp
index 8f6529e00d..420c006298 100644
--- a/tools/CIndex/CIndex.cpp
+++ b/tools/CIndex/CIndex.cpp
@@ -283,14 +283,12 @@ public:
void setOnlyLocalDecls(bool Local = true) { OnlyLocalDecls = Local; }
/// \brief Get the path of the clang binary.
- static const llvm::sys::Path& getClangPath();
+ const llvm::sys::Path& getClangPath();
private:
bool OnlyLocalDecls;
- static llvm::sys::Path ClangPath;
+ llvm::sys::Path ClangPath;
};
-llvm::sys::Path CIndexer::ClangPath;
-
const llvm::sys::Path& CIndexer::getClangPath() {
// Did we already compute the path?
if (!ClangPath.empty())