diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-04-30 02:16:23 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-04-30 02:16:23 +0000 |
commit | 3981b177096532ad3fa49ba0dcecee35b68fba54 (patch) | |
tree | bb0d332077cde698e7ec76b95c9c2ba5a29ebe39 /clang/lib/Lex/PPDirectives.cpp | |
parent | 680a60f0d035873d93a8bf3554bd883d0af79c34 (diff) | |
download | bcm5719-llvm-3981b177096532ad3fa49ba0dcecee35b68fba54.tar.gz bcm5719-llvm-3981b177096532ad3fa49ba0dcecee35b68fba54.zip |
Remove dead code: a MacroDirective can't be imported or ambiguous any more.
llvm-svn: 236197
Diffstat (limited to 'clang/lib/Lex/PPDirectives.cpp')
-rw-r--r-- | clang/lib/Lex/PPDirectives.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index 6c25bd87a27..1c66aac533b 100644 --- a/clang/lib/Lex/PPDirectives.cpp +++ b/clang/lib/Lex/PPDirectives.cpp @@ -78,15 +78,6 @@ Preprocessor::AllocateVisibilityMacroDirective(SourceLocation Loc, return new (BP) VisibilityMacroDirective(Loc, isPublic); } -MacroDirective * -Preprocessor::AllocateImportedMacroDirective(ModuleMacro *MM, - SourceLocation Loc) { - if (auto *MI = MM->getMacroInfo()) - return DefMacroDirective::createImported(*this, MI, Loc, MM); - else - return UndefMacroDirective::createImported(*this, Loc, MM); -} - /// \brief Read and discard all tokens remaining on the current line until /// the tok::eod token is found. void Preprocessor::DiscardUntilEndOfDirective() { |