diff options
Diffstat (limited to 'Lex/IdentifierTable.cpp')
-rw-r--r-- | Lex/IdentifierTable.cpp | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/Lex/IdentifierTable.cpp b/Lex/IdentifierTable.cpp index 865356c7f3..f0baa15516 100644 --- a/Lex/IdentifierTable.cpp +++ b/Lex/IdentifierTable.cpp @@ -13,34 +13,18 @@ //===----------------------------------------------------------------------===// #include "clang/Lex/IdentifierTable.h" -#include "clang/Lex/MacroInfo.h" #include "clang/Basic/LangOptions.h" #include "llvm/ADT/FoldingSet.h" #include "llvm/ADT/DenseMap.h" using namespace clang; -static llvm::DenseMap<const IdentifierInfo*, MacroInfo*> Macros; - -MacroInfo *IdentifierInfo::getMacroInfoInternal() const { - return Macros[this]; -} -void IdentifierInfo::setMacroInfo(MacroInfo *I) { - if (I == 0) { - if (HasMacro) { - Macros.erase(this); - HasMacro = false; - } - } else { - Macros[this] = I; - HasMacro = true; - } -} - - //===----------------------------------------------------------------------===// // Token Implementation //===----------------------------------------------------------------------===// +// FIXME: Move this elsewhere! +#include "clang/Lex/Token.h" + /// isObjCAtKeyword - Return true if we have an ObjC keyword identifier. bool Token::isObjCAtKeyword(tok::ObjCKeywordKind objcKey) const { return getKind() == tok::identifier && @@ -70,11 +54,6 @@ IdentifierInfo::IdentifierInfo() { FETokenInfo = 0; } -IdentifierInfo::~IdentifierInfo() { - if (MacroInfo *Macro = getMacroInfo()) - delete Macro; -} - //===----------------------------------------------------------------------===// // IdentifierTable Implementation //===----------------------------------------------------------------------===// |