summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/MacroInfo.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-04-30 02:16:23 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-04-30 02:16:23 +0000
commit3981b177096532ad3fa49ba0dcecee35b68fba54 (patch)
treebb0d332077cde698e7ec76b95c9c2ba5a29ebe39 /clang/lib/Lex/MacroInfo.cpp
parent680a60f0d035873d93a8bf3554bd883d0af79c34 (diff)
downloadbcm5719-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/MacroInfo.cpp')
-rw-r--r--clang/lib/Lex/MacroInfo.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/clang/lib/Lex/MacroInfo.cpp b/clang/lib/Lex/MacroInfo.cpp
index dbc804490b2..7581fe3cd7a 100644
--- a/clang/lib/Lex/MacroInfo.cpp
+++ b/clang/lib/Lex/MacroInfo.cpp
@@ -218,8 +218,6 @@ void MacroDirective::dump() const {
if (auto *Prev = getPrevious())
Out << " prev " << Prev;
if (IsFromPCH) Out << " from_pch";
- if (IsImported) Out << " imported";
- if (IsAmbiguous) Out << " ambiguous";
if (IsPublic)
Out << " public";
@@ -235,25 +233,6 @@ void MacroDirective::dump() const {
Out << "\n";
}
-DefMacroDirective *
-DefMacroDirective::createImported(Preprocessor &PP, MacroInfo *MI,
- SourceLocation Loc,
- ModuleMacro *ImportedFrom) {
- void *Mem = PP.getPreprocessorAllocator().Allocate(
- sizeof(DefMacroDirective) + sizeof(MacroDirective::ImportData),
- llvm::alignOf<DefMacroDirective>());
- return new (Mem) DefMacroDirective(MI, Loc, ImportedFrom);
-}
-
-UndefMacroDirective *
-UndefMacroDirective::createImported(Preprocessor &PP, SourceLocation Loc,
- ModuleMacro *ImportedFrom) {
- void *Mem = PP.getPreprocessorAllocator().Allocate(
- sizeof(UndefMacroDirective) + sizeof(MacroDirective::ImportData),
- llvm::alignOf<UndefMacroDirective>());
- return new (Mem) UndefMacroDirective(Loc, ImportedFrom);
-}
-
ModuleMacro *ModuleMacro::create(Preprocessor &PP, Module *OwningModule,
IdentifierInfo *II, MacroInfo *Macro,
ArrayRef<ModuleMacro *> Overrides) {
OpenPOWER on IntegriCloud