]> granicus.if.org Git - clang/commitdiff
Efficiency refinements.
authorMike Stump <mrs@apple.com>
Fri, 9 Oct 2009 20:16:49 +0000 (20:16 +0000)
committerMike Stump <mrs@apple.com>
Fri, 9 Oct 2009 20:16:49 +0000 (20:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83666 91177308-0d34-0410-b5e6-96231b3b80d8

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

index efdc3a12391c7a6d0e634004f3df53ebe550694e..1d0443972a05a0128867da6817987c9a7c3d3afc 100644 (file)
@@ -59,7 +59,7 @@ public:
 
   /// AddGnuCPlusPlusIncludePaths - Add the necessary paths to suport a gnu
   ///  libstdc++.
-  void AddGnuCPlusPlusIncludePaths(std::string base, std::string arch);
+  void AddGnuCPlusPlusIncludePaths(const std::string &Base, const char *Arch);
 
   /// AddDefaultEnvVarPaths - Adds list of paths from default environment
   ///  variables such as CPATH.
index d2dd0ad8922e0fa86a9c70b1b308898d1825c71d..412b70721a2fbbdeafd7d77faedbfcf4fc5eb75a 100644 (file)
@@ -98,11 +98,11 @@ void InitHeaderSearch::AddEnvVarPaths(const char *Name) {
     AddPath(at, Angled, false, true, false);
 }
 
-void InitHeaderSearch::AddGnuCPlusPlusIncludePaths(std::string base,
-                                                   std::string arch) {
-    AddPath(base, System, true, false, false);
-    AddPath(base + "/" + arch, System, true, false, false);
-    AddPath(base + "/backward", System, true, false, false);
+void InitHeaderSearch::AddGnuCPlusPlusIncludePaths(const std::string &Base,
+                                                  const char *Arch) {
+    AddPath(Base, System, true, false, false);
+    AddPath(Base + "/" + Arch, System, true, false, false);
+    AddPath(Base + "/backward", System, true, false, false);
 }
 
 #if defined(LLVM_ON_WIN32)