diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-10-16 21:42:56 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-10-16 21:42:56 +0000 |
commit | 3d5b48c4804f2442ed42e1e93f226f08abd7b14e (patch) | |
tree | 5499239d34064b67079cdc15e73ab5df37f6bab0 /clang/lib/Frontend/Rewrite | |
parent | 83a131fa73f38dff92648775bc70989332768e93 (diff) | |
download | bcm5719-llvm-3d5b48c4804f2442ed42e1e93f226f08abd7b14e.tar.gz bcm5719-llvm-3d5b48c4804f2442ed42e1e93f226f08abd7b14e.zip |
Refactor module lookup when looking up a header file, and wire through the requesting module. No functionality change.
llvm-svn: 250554
Diffstat (limited to 'clang/lib/Frontend/Rewrite')
-rw-r--r-- | clang/lib/Frontend/Rewrite/InclusionRewriter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp b/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp index 97baa720233..ca8226251fd 100644 --- a/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp +++ b/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp @@ -389,9 +389,10 @@ bool InclusionRewriter::HandleHasInclude( SmallVector<std::pair<const FileEntry *, const DirectoryEntry *>, 1> Includers; Includers.push_back(std::make_pair(FileEnt, FileEnt->getDir())); + // FIXME: Why don't we call PP.LookupFile here? const FileEntry *File = PP.getHeaderSearchInfo().LookupFile( Filename, SourceLocation(), isAngled, nullptr, CurDir, Includers, nullptr, - nullptr, nullptr, false); + nullptr, nullptr, nullptr, false); FileExists = File != nullptr; return true; |