diff options
author | Chris Lattner <sabre@nondot.org> | 2007-07-15 06:35:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-07-15 06:35:27 +0000 |
commit | abca2bba54197256f2830f757218cfbea2ed9cd1 (patch) | |
tree | 2a4f7e2429572041e60ee6ad6c2acb417875c552 /include/clang/Basic/SourceManager.h | |
parent | fa2eaabd304172dd8afc561f6156a65f8d0e442b (diff) |
Change SourceManager::getInstantiationLoc to take virtual locations, doing its
virtual->physical mapping explicitly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39867 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r-- | include/clang/Basic/SourceManager.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h index e7f0d30a1f..741ca16913 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -195,9 +195,8 @@ public: } /// getInstantiationLoc - Return a new SourceLocation that encodes the fact - /// that a token from physloc PhysLoc should actually be referenced from - /// InstantiationLoc. - SourceLocation getInstantiationLoc(SourceLocation PhysLoc, + /// that a token at Loc should actually be referenced from InstantiationLoc. + SourceLocation getInstantiationLoc(SourceLocation Loc, SourceLocation InstantiationLoc); /// getBuffer - Return the buffer for the specified FileID. |