summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-16 07:36:28 +0000
committerChris Lattner <sabre@nondot.org>2009-01-16 07:36:28 +0000
commit8a42586c54f6ec33b657d2c052740fdb52ce3a6c (patch)
tree457d3b7e94e51e302cb361e9029b43aeee644003 /clang/lib/Lex/Preprocessor.cpp
parent3c91971b3391a6aa7f48ee11986813204006adf9 (diff)
downloadbcm5719-llvm-8a42586c54f6ec33b657d2c052740fdb52ce3a6c.tar.gz
bcm5719-llvm-8a42586c54f6ec33b657d2c052740fdb52ce3a6c.zip
more SourceLocation lexicon change: instead of referring to the
"logical" location, refer to the "instantiation" location. llvm-svn: 62316
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r--clang/lib/Lex/Preprocessor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp
index 59632edaaeb..bbe0f5c0f92 100644
--- a/clang/lib/Lex/Preprocessor.cpp
+++ b/clang/lib/Lex/Preprocessor.cpp
@@ -140,7 +140,7 @@ void Preprocessor::DumpToken(const Token &Tok, bool DumpFlags) const {
}
void Preprocessor::DumpLocation(SourceLocation Loc) const {
- SourceLocation LogLoc = SourceMgr.getLogicalLoc(Loc);
+ SourceLocation LogLoc = SourceMgr.getInstantiationLoc(Loc);
llvm::cerr << SourceMgr.getSourceName(LogLoc) << ':'
<< SourceMgr.getLineNumber(LogLoc) << ':'
<< SourceMgr.getColumnNumber(LogLoc);
@@ -314,7 +314,7 @@ SourceLocation Preprocessor::AdvanceToTokenCharacter(SourceLocation TokStart,
// confusing.
if (CharNo == 0 || TokStart.isMacroID()) return TokStart;
- // Figure out how many physical characters away the specified logical
+ // Figure out how many physical characters away the specified instantiation
// character is. This needs to take into consideration newlines and
// trigraphs.
const char *TokPtr = SourceMgr.getCharacterData(TokStart);
OpenPOWER on IntegriCloud