diff options
author | Chris Lattner <sabre@nondot.org> | 2007-10-07 08:44:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-10-07 08:44:20 +0000 |
commit | cc1a875f94630e58d24a55577ffbf0e89b7da8c7 (patch) | |
tree | ca4db3025d08d21df9879e6fe968f9eac07e51b0 /Lex/PPExpressions.cpp | |
parent | 0edde55077cc3cb9fffeba19f5936f05a68c8e2b (diff) |
improve layering:
Now instead of IdentifierInfo knowing anything about MacroInfo,
only the preprocessor knows. This makes MacroInfo truly private
to the Lex library (and its direct clients) instead of being
accessed in the Basic library.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42727 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Lex/PPExpressions.cpp')
-rw-r--r-- | Lex/PPExpressions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lex/PPExpressions.cpp b/Lex/PPExpressions.cpp index fb745068fd..e5f603f26e 100644 --- a/Lex/PPExpressions.cpp +++ b/Lex/PPExpressions.cpp @@ -105,7 +105,7 @@ static bool EvaluateValue(llvm::APSInt &Result, Token &PeekTok, // If there is a macro, mark it used. if (Result != 0 && ValueLive) { - MacroInfo *Macro = II->getMacroInfo(); + MacroInfo *Macro = PP.getMacroInfo(II); Macro->setIsUsed(true); // If this is the first use of a target-specific macro, warn about it. |