summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/SourceLocation.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/Basic/SourceLocation.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/Basic/SourceLocation.cpp')
-rw-r--r--clang/lib/Basic/SourceLocation.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/clang/lib/Basic/SourceLocation.cpp b/clang/lib/Basic/SourceLocation.cpp
index bb8cac2f9f0..a34293177ba 100644
--- a/clang/lib/Basic/SourceLocation.cpp
+++ b/clang/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");
}
}
OpenPOWER on IntegriCloud