summaryrefslogtreecommitdiffstats
path: root/clang/Driver/clang.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-17 18:34:53 +0000
committerChris Lattner <sabre@nondot.org>2007-12-17 18:34:53 +0000
commit4ffe46cbdf4db64ad20f1b67a998708a7ebaf409 (patch)
tree5c511174094f5ac7ab77fd13d1b9de4df54dfb0c /clang/Driver/clang.cpp
parentb5a79d0eaa83baf7c73f89fedef4f865de0208d2 (diff)
downloadbcm5719-llvm-4ffe46cbdf4db64ad20f1b67a998708a7ebaf409.tar.gz
bcm5719-llvm-4ffe46cbdf4db64ad20f1b67a998708a7ebaf409.zip
Start reading the headermap header, drop the 'errorstr' argument to
the create method. llvm-svn: 45109
Diffstat (limited to 'clang/Driver/clang.cpp')
-rw-r--r--clang/Driver/clang.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp
index 05b6a0f1fe9..58c384d65e3 100644
--- a/clang/Driver/clang.cpp
+++ b/clang/Driver/clang.cpp
@@ -666,19 +666,11 @@ static void AddPath(const std::string &Path, IncludeDirGroup Group,
if (!isFramework) {
if (const FileEntry *FE = FM.getFile(&MappedPath[0],
&MappedPath[0]+MappedPath.size())) {
- std::string ErrorInfo;
- const HeaderMap *HM = HS.CreateHeaderMap(FE, ErrorInfo);
- if (HM) {
+ if (const HeaderMap *HM = HS.CreateHeaderMap(FE)) {
+ // It is a headermap, add it to the search path.
IncludeGroup[Group].push_back(DirectoryLookup(HM, Type,isUserSupplied));
return;
}
-
- // If this looked like a headermap but was corrupted, emit that error,
- // otherwise treat it as a missing directory.
- if (!ErrorInfo.empty()) {
- fprintf(stderr, "%s\n", ErrorInfo.c_str());
- return;
- }
}
}
OpenPOWER on IntegriCloud