]> granicus.if.org Git - clang/commitdiff
Passing const Triple& is sufficient for AddDefaultSystemIncludePaths()
authorAxel Naumann <Axel.Naumann@cern.ch>
Fri, 9 Oct 2009 19:37:12 +0000 (19:37 +0000)
committerAxel Naumann <Axel.Naumann@cern.ch>
Fri, 9 Oct 2009 19:37:12 +0000 (19:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83663 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Frontend/InitHeaderSearch.h
lib/Frontend/InitHeaderSearch.cpp

index d80221ae9c6d0d88b3b00dc51187e154835a5b26..efdc3a12391c7a6d0e634004f3df53ebe550694e 100644 (file)
@@ -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.
index fff3834d129cd0a7637f178f146bf92184e8fa54..4f1cb2750fd0428448ac066ad7bf51d3650973cf 100644 (file)
@@ -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();