diff options
author | Daniel Dunbar <daniel@zuster.org> | 2013-01-29 23:59:45 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2013-01-29 23:59:45 +0000 |
commit | c33c9f7a9a955463b3418afd461774c726913800 (patch) | |
tree | 54c56029767919d89866aa97146f0c5a2c5a7659 /lib/Frontend/InitHeaderSearch.cpp | |
parent | f85541c812af87e54b6738d22611721692ccdcb0 (diff) |
[Frontend] Make the include dir group independent from the "use sysroot" bit.
- This slightly decouples the path handling, since before the group sometimes
dominated the "use sysroot" bit, but it was still passed in via the API.
- No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173855 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/InitHeaderSearch.cpp')
-rw-r--r-- | lib/Frontend/InitHeaderSearch.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Frontend/InitHeaderSearch.cpp b/lib/Frontend/InitHeaderSearch.cpp index d23c988e82..ba3abbaebc 100644 --- a/lib/Frontend/InitHeaderSearch.cpp +++ b/lib/Frontend/InitHeaderSearch.cpp @@ -122,9 +122,7 @@ void InitHeaderSearch::AddPath(const Twine &Path, StringRef MappedPathStr = Path.toStringRef(MappedPathStorage); // Prepend the sysroot, if desired and this is a system header group. - if (HasSysroot && !IgnoreSysRoot && - (Group == System || Group == CXXSystem) && - CanPrefixSysroot(MappedPathStr)) { + if (HasSysroot && !IgnoreSysRoot && CanPrefixSysroot(MappedPathStr)) { MappedPathStorage.clear(); MappedPathStr = (IncludeSysroot + Path).toStringRef(MappedPathStorage); } |