]> granicus.if.org Git - clang/commit
[modules] When compiling a preprocessed module map, look for headers relative
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 31 May 2017 20:56:55 +0000 (20:56 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 31 May 2017 20:56:55 +0000 (20:56 +0000)
commit62955aa44343371b203bc2103cad2f75fd91622c
tree8ebde701c4746d4422d6737e9e41d6f3cd138920
parentb2e94d3c82a2c5b4a31ea51c1211abd54b3a7569
[modules] When compiling a preprocessed module map, look for headers relative
to the original module map.

Also use the path and name of the original module map when emitting that
information into the .pcm file. The upshot of this is that the produced .pcm
file will track information for headers in their original locations (where the
module was preprocessed), not relative to whatever directory the preprocessed
module map was in when it was built.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304346 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Module.h
include/clang/Lex/HeaderSearch.h
lib/Frontend/FrontendAction.cpp
lib/Lex/HeaderSearch.cpp
lib/Serialization/ASTWriter.cpp
test/Modules/preprocess-module.cpp
test/Modules/preprocess-nested.cpp