diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-16 07:36:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-16 07:36:28 +0000 |
commit | f7cf85b330bedd2877e1371fb0a83e99751ae162 (patch) | |
tree | 6674dd8f06d3c395ab61ad9770934c49572e200c /lib/Basic/SourceLocation.cpp | |
parent | 88054dee0402e4d3c1f64e6b697acc47195c0d72 (diff) |
more SourceLocation lexicon change: instead of referring to the
"logical" location, refer to the "instantiation" location.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62316 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/SourceLocation.cpp')
-rw-r--r-- | lib/Basic/SourceLocation.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/Basic/SourceLocation.cpp b/lib/Basic/SourceLocation.cpp index bb8cac2f9f..a34293177b 100644 --- a/lib/Basic/SourceLocation.cpp +++ b/lib/Basic/SourceLocation.cpp @@ -37,9 +37,9 @@ SourceRange SourceRange::ReadVal(llvm::Deserializer& D) { return SourceRange(A,B); } -FullSourceLoc FullSourceLoc::getLogicalLoc() const { +FullSourceLoc FullSourceLoc::getInstantiationLoc() const { assert (isValid()); - return FullSourceLoc(SrcMgr->getLogicalLoc(Loc), *SrcMgr); + return FullSourceLoc(SrcMgr->getInstantiationLoc(Loc), *SrcMgr); } FullSourceLoc FullSourceLoc::getSpellingLoc() const { @@ -63,14 +63,14 @@ unsigned FullSourceLoc::getColumnNumber() const { } -unsigned FullSourceLoc::getLogicalLineNumber() const { +unsigned FullSourceLoc::getInstantiationLineNumber() const { assert (isValid()); - return SrcMgr->getLogicalLineNumber(Loc); + return SrcMgr->getInstantiationLineNumber(Loc); } -unsigned FullSourceLoc::getLogicalColumnNumber() const { +unsigned FullSourceLoc::getInstantiationColumnNumber() const { assert (isValid()); - return SrcMgr->getLogicalColumnNumber(Loc); + return SrcMgr->getInstantiationColumnNumber(Loc); } unsigned FullSourceLoc::getSpellingLineNumber() const { @@ -120,15 +120,15 @@ void FullSourceLoc::dump() const { } if (isFileID()) { - // The logical and spelling pos is identical for file locs. + // The instantiation and spelling pos is identical for file locs. fprintf(stderr, "File Loc from '%s': %d: %d\n", - getSourceName(), getLogicalLineNumber(), - getLogicalColumnNumber()); + getSourceName(), getInstantiationLineNumber(), + getInstantiationColumnNumber()); } else { fprintf(stderr, "Macro Loc (\n Spelling: "); getSpellingLoc().dump(); - fprintf(stderr, " Logical: "); - getLogicalLoc().dump(); + fprintf(stderr, " Instantiation: "); + getInstantiationLoc().dump(); fprintf(stderr, ")\n"); } } |