diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-16 07:00:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-16 07:00:02 +0000 |
commit | 53e384f6335f5b361d838ab5032cb13d262023e4 (patch) | |
tree | 273027c121ac46cea71e2d421c267a670e4e5ef9 /clang/lib/Analysis/LiveVariables.cpp | |
parent | 2d9e40ed2481b3fc34c747841e5c926b7c67308a (diff) | |
download | bcm5719-llvm-53e384f6335f5b361d838ab5032cb13d262023e4.tar.gz bcm5719-llvm-53e384f6335f5b361d838ab5032cb13d262023e4.zip |
Change some terminology in SourceLocation: instead of referring to
the "physical" location of tokens, refer to the "spelling" location.
This is more concrete and useful, tokens aren't really physical objects!
llvm-svn: 62309
Diffstat (limited to 'clang/lib/Analysis/LiveVariables.cpp')
-rw-r--r-- | clang/lib/Analysis/LiveVariables.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Analysis/LiveVariables.cpp b/clang/lib/Analysis/LiveVariables.cpp index 8105e38b674..ac0aa9ba8c6 100644 --- a/clang/lib/Analysis/LiveVariables.cpp +++ b/clang/lib/Analysis/LiveVariables.cpp @@ -358,13 +358,13 @@ void LiveVariables::dumpLiveness(const ValTy& V, SourceManager& SM) const { for (AnalysisDataTy::decl_iterator I = AD.begin_decl(), E = AD.end_decl(); I!=E; ++I) if (V.getDeclBit(I->second)) { - SourceLocation PhysLoc = SM.getPhysicalLoc(I->first->getLocation()); + SourceLocation SpellingLoc = SM.getSpellingLoc(I->first->getLocation()); fprintf(stderr, " %s <%s:%u:%u>\n", I->first->getIdentifier()->getName(), - SM.getSourceName(PhysLoc), - SM.getLineNumber(PhysLoc), - SM.getColumnNumber(PhysLoc)); + SM.getSourceName(SpellingLoc), + SM.getLineNumber(SpellingLoc), + SM.getColumnNumber(SpellingLoc)); } } |