aboutsummaryrefslogtreecommitdiff
path: root/Lex/HeaderSearch.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-17 08:17:39 +0000
committerChris Lattner <sabre@nondot.org>2007-12-17 08:17:39 +0000
commitb09e71fd52d0e7fdf3e88b1df72ea0cee5d9b37b (patch)
treee5f9e9d2a04f28b1ba2e7ad0ce33a75b2c5a7648 /Lex/HeaderSearch.cpp
parentafded5bbb85607023c710c3d6a96c372feb84d7f (diff)
finish stubbing out support for HeaderMap. Now we just need an implementation!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Lex/HeaderSearch.cpp')
-rw-r--r--Lex/HeaderSearch.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lex/HeaderSearch.cpp b/Lex/HeaderSearch.cpp
index 3489de5605..1d79effc84 100644
--- a/Lex/HeaderSearch.cpp
+++ b/Lex/HeaderSearch.cpp
@@ -100,7 +100,8 @@ const FileEntry *DirectoryLookup::LookupFile(const char *FilenameStart,
if (isFramework())
return DoFrameworkLookup(FilenameStart, FilenameEnd, HS);
- assert(0 && "headermap unimp");
+ assert(isHeaderMap() && "Unknown directory lookup");
+ return getHeaderMap()->LookupFile(FilenameStart, FilenameEnd,HS.getFileMgr());
}