[cfe-commits] r83666 - in /cfe/trunk: include/clang/Frontend/InitHeaderSearch.h lib/Frontend/InitHeaderSearch.cpp
Mike Stump
mrs at apple.com
Fri Oct 9 13:16:50 PDT 2009
Author: mrs
Date: Fri Oct 9 15:16:49 2009
New Revision: 83666
URL: http://llvm.org/viewvc/llvm-project?rev=83666&view=rev
Log:
Efficiency refinements.
Modified:
cfe/trunk/include/clang/Frontend/InitHeaderSearch.h
cfe/trunk/lib/Frontend/InitHeaderSearch.cpp
Modified: cfe/trunk/include/clang/Frontend/InitHeaderSearch.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/InitHeaderSearch.h?rev=83666&r1=83665&r2=83666&view=diff
==============================================================================
--- cfe/trunk/include/clang/Frontend/InitHeaderSearch.h (original)
+++ cfe/trunk/include/clang/Frontend/InitHeaderSearch.h Fri Oct 9 15:16:49 2009
@@ -59,7 +59,7 @@
/// 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.
Modified: cfe/trunk/lib/Frontend/InitHeaderSearch.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/InitHeaderSearch.cpp?rev=83666&r1=83665&r2=83666&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/InitHeaderSearch.cpp (original)
+++ cfe/trunk/lib/Frontend/InitHeaderSearch.cpp Fri Oct 9 15:16:49 2009
@@ -98,11 +98,11 @@
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)
More information about the cfe-commits
mailing list