summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/MacroPPCallbacks.cpp
diff options
context:
space:
mode:
authorJulie Hockett <juliehockett@google.com>2018-05-10 19:05:36 +0000
committerJulie Hockett <juliehockett@google.com>2018-05-10 19:05:36 +0000
commit96fbe58b0f521f134c17e295bcafe041ee2bf3fd (patch)
treed56479000cdd2fb63d8e728bc160cba3c2dfe1e0 /clang/lib/CodeGen/MacroPPCallbacks.cpp
parentc58988a9086f496177724e4c1d0277386a2ac011 (diff)
downloadbcm5719-llvm-96fbe58b0f521f134c17e295bcafe041ee2bf3fd.tar.gz
bcm5719-llvm-96fbe58b0f521f134c17e295bcafe041ee2bf3fd.zip
Reland '[clang] Adding CharacteristicKind to PPCallbacks::InclusionDirective'
This commit relands r331904. Adding a SrcMgr::CharacteristicKind parameter to the InclusionDirective in PPCallbacks, and updating calls to that function. This will be useful in https://reviews.llvm.org/D43778 to determine which includes are system headers. Differential Revision: https://reviews.llvm.org/D46614 llvm-svn: 332021
Diffstat (limited to 'clang/lib/CodeGen/MacroPPCallbacks.cpp')
-rw-r--r--clang/lib/CodeGen/MacroPPCallbacks.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/MacroPPCallbacks.cpp b/clang/lib/CodeGen/MacroPPCallbacks.cpp
index a6f21d8ddcf..48dea7d54b1 100644
--- a/clang/lib/CodeGen/MacroPPCallbacks.cpp
+++ b/clang/lib/CodeGen/MacroPPCallbacks.cpp
@@ -178,7 +178,8 @@ void MacroPPCallbacks::FileChanged(SourceLocation Loc, FileChangeReason Reason,
void MacroPPCallbacks::InclusionDirective(
SourceLocation HashLoc, const Token &IncludeTok, StringRef FileName,
bool IsAngled, CharSourceRange FilenameRange, const FileEntry *File,
- StringRef SearchPath, StringRef RelativePath, const Module *Imported) {
+ StringRef SearchPath, StringRef RelativePath, const Module *Imported,
+ SrcMgr::CharacteristicKind FileType) {
// Record the line location of the current included file.
LastHashLoc = HashLoc;
OpenPOWER on IntegriCloud