aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-01-14 00:36:42 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-01-14 00:36:42 +0000
commitb3958476b21702a15f64f09d2862506d03dffe7b (patch)
tree3e77f14363d604a0fa074d5416bbaae8f21d2684 /lib/Lex
parent0446f51e1c0e16bc9e3f1311967e31ac6dc40bab (diff)
Constify argument of Preprocessor::getMacroInfoHistory and propagate to
callers, removing unneeded const_cast git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172372 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex')
-rw-r--r--lib/Lex/PPMacroExpansion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/PPMacroExpansion.cpp b/lib/Lex/PPMacroExpansion.cpp
index eb08977ee6..c626b4d561 100644
--- a/lib/Lex/PPMacroExpansion.cpp
+++ b/lib/Lex/PPMacroExpansion.cpp
@@ -32,7 +32,7 @@
#include <ctime>
using namespace clang;
-MacroInfo *Preprocessor::getMacroInfoHistory(IdentifierInfo *II) const {
+MacroInfo *Preprocessor::getMacroInfoHistory(const IdentifierInfo *II) const {
assert(II->hadMacroDefinition() && "Identifier has not been not a macro!");
macro_iterator Pos = Macros.find(II);