diff options
author | Axel Naumann <Axel.Naumann@cern.ch> | 2009-10-09 19:37:12 +0000 |
---|---|---|
committer | Axel Naumann <Axel.Naumann@cern.ch> | 2009-10-09 19:37:12 +0000 |
commit | 38ee4e07633f1548f6b703e74ac7ad2208059d39 (patch) | |
tree | c714d3b1a2dc8505b9788f32c7ca5e4e81489e91 | |
parent | d8945d6ae0b4a40fd73b45dcc729215c5cfe1f5e (diff) |
Passing const Triple& is sufficient for AddDefaultSystemIncludePaths()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83663 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Frontend/InitHeaderSearch.h | 3 | ||||
-rw-r--r-- | lib/Frontend/InitHeaderSearch.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/Frontend/InitHeaderSearch.h b/include/clang/Frontend/InitHeaderSearch.h index d80221ae9c..efdc3a1239 100644 --- a/include/clang/Frontend/InitHeaderSearch.h +++ b/include/clang/Frontend/InitHeaderSearch.h @@ -67,7 +67,8 @@ public: /// AddDefaultSystemIncludePaths - Adds the default system include paths so /// that e.g. stdio.h is found. - void AddDefaultSystemIncludePaths(const LangOptions &Lang, llvm::Triple &triple); + void AddDefaultSystemIncludePaths(const LangOptions &Lang, + const llvm::Triple &triple); /// Realize - Merges all search path lists into one list and send it to /// HeaderSearch. diff --git a/lib/Frontend/InitHeaderSearch.cpp b/lib/Frontend/InitHeaderSearch.cpp index fff3834d12..4f1cb2750f 100644 --- a/lib/Frontend/InitHeaderSearch.cpp +++ b/lib/Frontend/InitHeaderSearch.cpp @@ -222,7 +222,7 @@ bool getVisualStudioDir(std::string &path) { #endif // LLVM_ON_WIN32 void InitHeaderSearch::AddDefaultSystemIncludePaths(const LangOptions &Lang, - llvm::Triple &triple) { + const llvm::Triple &triple) { // FIXME: temporary hack: hard-coded paths. llvm::Triple::OSType os = triple.getOS(); |