summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/SourceLocation.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-03-10 05:13:43 +0000
committerTed Kremenek <kremenek@apple.com>2009-03-10 05:13:43 +0000
commit3ceb7caf1c8f0960acd53694edaf382c4b6fd61f (patch)
tree262dd4594badb130ccfdbd2b3b23b48b6b086716 /clang/lib/Basic/SourceLocation.cpp
parent72bbf1734078b1c4094242589ed455279a005f3f (diff)
downloadbcm5719-llvm-3ceb7caf1c8f0960acd53694edaf382c4b6fd61f.tar.gz
bcm5719-llvm-3ceb7caf1c8f0960acd53694edaf382c4b6fd61f.zip
Add FullSourceLoc::getDecomposedLoc.
llvm-svn: 66522
Diffstat (limited to 'clang/lib/Basic/SourceLocation.cpp')
-rw-r--r--clang/lib/Basic/SourceLocation.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Basic/SourceLocation.cpp b/clang/lib/Basic/SourceLocation.cpp
index fd90b5a2ce9..dc1dceb7248 100644
--- a/clang/lib/Basic/SourceLocation.cpp
+++ b/clang/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);
+}
OpenPOWER on IntegriCloud