diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-03-10 05:13:43 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-03-10 05:13:43 +0000 |
commit | 321abd4583dc02a254489132c5ccbe125d18ce4f (patch) | |
tree | 3501bf38cd8046416d72060384440b05aecd38a1 /lib/Basic | |
parent | b327793860737d1c103a73aeda8057dd628a101d (diff) |
Add FullSourceLoc::getDecomposedLoc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66522 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic')
-rw-r--r-- | lib/Basic/SourceLocation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Basic/SourceLocation.cpp b/lib/Basic/SourceLocation.cpp index fd90b5a2ce..dc1dceb724 100644 --- a/lib/Basic/SourceLocation.cpp +++ b/lib/Basic/SourceLocation.cpp @@ -142,3 +142,7 @@ std::pair<const char*, const char*> FullSourceLoc::getBufferData() const { const llvm::MemoryBuffer *Buf = getBuffer(); return std::make_pair(Buf->getBufferStart(), Buf->getBufferEnd()); } + +std::pair<FileID, unsigned> FullSourceLoc::getDecomposedLoc() const { + return SrcMgr->getDecomposedLoc(*this); +} |