diff options
author | Julie Hockett <juliehockett@google.com> | 2018-05-09 22:25:47 +0000 |
---|---|---|
committer | Julie Hockett <juliehockett@google.com> | 2018-05-09 22:25:47 +0000 |
commit | b524d5e5537507f066f2fcdcb24b3be3c9a4c566 (patch) | |
tree | fb6e77eebba31f79c6c6f234c902d2cb46024c7f /clang/lib/Frontend/Rewrite | |
parent | 4a4384353221b845eccdb631a0f83c66a2544a3c (diff) | |
download | bcm5719-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/Rewrite')
-rw-r--r-- | clang/lib/Frontend/Rewrite/InclusionRewriter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp b/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp index 1631eccd701..3b8d792e3af 100644 --- a/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp +++ b/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp @@ -77,8 +77,7 @@ private: 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 WriteLineInfo(StringRef Filename, int Line, SrcMgr::CharacteristicKind FileType, StringRef Extra = StringRef()); @@ -193,8 +192,7 @@ void InclusionRewriter::InclusionDirective(SourceLocation HashLoc, const FileEntry * /*File*/, StringRef /*SearchPath*/, StringRef /*RelativePath*/, - const Module *Imported, - SrcMgr::CharacteristicKind FileType){ + const Module *Imported) { if (Imported) { auto P = ModuleIncludes.insert( std::make_pair(HashLoc.getRawEncoding(), Imported)); |