summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/DependencyFile.cpp
diff options
context:
space:
mode:
authorJulie Hockett <juliehockett@google.com>2018-05-09 22:25:47 +0000
committerJulie Hockett <juliehockett@google.com>2018-05-09 22:25:47 +0000
commitb524d5e5537507f066f2fcdcb24b3be3c9a4c566 (patch)
treefb6e77eebba31f79c6c6f234c902d2cb46024c7f /clang/lib/Frontend/DependencyFile.cpp
parent4a4384353221b845eccdb631a0f83c66a2544a3c (diff)
downloadbcm5719-llvm-b524d5e5537507f066f2fcdcb24b3be3c9a4c566.tar.gz
bcm5719-llvm-b524d5e5537507f066f2fcdcb24b3be3c9a4c566.zip
Revert "[clang] Adding CharacteristicKind to PPCallbacks::InclusionDirective"
This reverts commit r331904 because of a memory leak. llvm-svn: 331932
Diffstat (limited to 'clang/lib/Frontend/DependencyFile.cpp')
-rw-r--r--clang/lib/Frontend/DependencyFile.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/clang/lib/Frontend/DependencyFile.cpp b/clang/lib/Frontend/DependencyFile.cpp
index 4e605523dc6..5ad1e97a8ff 100644
--- a/clang/lib/Frontend/DependencyFile.cpp
+++ b/clang/lib/Frontend/DependencyFile.cpp
@@ -63,8 +63,7 @@ struct DepCollectorPPCallbacks : public PPCallbacks {
StringRef FileName, bool IsAngled,
CharSourceRange FilenameRange, const FileEntry *File,
StringRef SearchPath, StringRef RelativePath,
- const Module *Imported,
- SrcMgr::CharacteristicKind FileType) override {
+ const Module *Imported) override {
if (!File)
DepCollector.maybeAddDependency(FileName, /*FromModule*/false,
/*IsSystem*/false, /*IsModuleFile*/false,
@@ -194,8 +193,7 @@ public:
StringRef FileName, bool IsAngled,
CharSourceRange FilenameRange, const FileEntry *File,
StringRef SearchPath, StringRef RelativePath,
- const Module *Imported,
- SrcMgr::CharacteristicKind FileType) override;
+ const Module *Imported) override;
void EndOfMainFile() override {
OutputDependencyFile();
@@ -315,8 +313,7 @@ void DFGImpl::InclusionDirective(SourceLocation HashLoc,
const FileEntry *File,
StringRef SearchPath,
StringRef RelativePath,
- const Module *Imported,
- SrcMgr::CharacteristicKind FileType) {
+ const Module *Imported) {
if (!File) {
if (AddMissingHeaderDeps)
AddFilename(FileName);
OpenPOWER on IntegriCloud