diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2011-07-25 20:52:32 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2011-07-25 20:52:32 +0000 |
| commit | c7ca5218b691296031f6a3b6c41086745b231735 (patch) | |
| tree | 8843ea8e81a9dd5aabda67a5ac0781cebb6a57a4 /clang/lib/Lex | |
| parent | c84d769c686fd09651bcdcf2f34b342312db78d5 (diff) | |
| download | bcm5719-llvm-c7ca5218b691296031f6a3b6c41086745b231735.tar.gz bcm5719-llvm-c7ca5218b691296031f6a3b6c41086745b231735.zip | |
Rename getDecomposedInstantiationLoc to getDecomposedExpansionLoc.
llvm-svn: 135962
Diffstat (limited to 'clang/lib/Lex')
| -rw-r--r-- | clang/lib/Lex/MacroInfo.cpp | 4 | ||||
| -rw-r--r-- | clang/lib/Lex/PPDirectives.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Lex/MacroInfo.cpp b/clang/lib/Lex/MacroInfo.cpp index 0a16a256721..9e682ce3065 100644 --- a/clang/lib/Lex/MacroInfo.cpp +++ b/clang/lib/Lex/MacroInfo.cpp @@ -68,9 +68,9 @@ unsigned MacroInfo::getDefinitionLengthSlow(SourceManager &SM) const { assert((macroEnd.isFileID() || lastToken.is(tok::comment)) && "Macro defined in macro?"); std::pair<FileID, unsigned> - startInfo = SM.getDecomposedInstantiationLoc(macroStart); + startInfo = SM.getDecomposedExpansionLoc(macroStart); std::pair<FileID, unsigned> - endInfo = SM.getDecomposedInstantiationLoc(macroEnd); + endInfo = SM.getDecomposedExpansionLoc(macroEnd); assert(startInfo.first == endInfo.first && "Macro definition spanning multiple FileIDs ?"); assert(startInfo.second <= endInfo.second); diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index 7e4b9b2bd6e..212ffeef1b1 100644 --- a/clang/lib/Lex/PPDirectives.cpp +++ b/clang/lib/Lex/PPDirectives.cpp @@ -825,7 +825,7 @@ static bool ReadLineMarkerFlags(bool &IsFileEntry, bool &IsFileExit, // If we are leaving the current presumed file, check to make sure the // presumed include stack isn't empty! FileID CurFileID = - SM.getDecomposedInstantiationLoc(FlagTok.getLocation()).first; + SM.getDecomposedExpansionLoc(FlagTok.getLocation()).first; PresumedLoc PLoc = SM.getPresumedLoc(FlagTok.getLocation()); if (PLoc.isInvalid()) return true; @@ -834,7 +834,7 @@ static bool ReadLineMarkerFlags(bool &IsFileEntry, bool &IsFileExit, // different physical file, then we aren't in a "1" line marker flag region. SourceLocation IncLoc = PLoc.getIncludeLoc(); if (IncLoc.isInvalid() || - SM.getDecomposedInstantiationLoc(IncLoc).first != CurFileID) { + SM.getDecomposedExpansionLoc(IncLoc).first != CurFileID) { PP.Diag(FlagTok, diag::err_pp_linemarker_invalid_pop); PP.DiscardUntilEndOfDirective(); return true; |

