diff options
Diffstat (limited to 'clang/lib/Lex/MacroInfo.cpp')
-rw-r--r-- | clang/lib/Lex/MacroInfo.cpp | 21 |
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) { |