diff options
author | Chris Lattner <sabre@nondot.org> | 2012-05-05 22:04:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-05-05 22:04:11 +0000 |
commit | 339adf172582d1fb2d069d0f7c68688b0bc44007 (patch) | |
tree | 362f94f5307d67b14e752fffaf2ee6c43a3443aa /llvm | |
parent | cd60bc491e27f1e1edc7c65baaa49498269bb84e (diff) | |
download | bcm5719-llvm-339adf172582d1fb2d069d0f7c68688b0bc44007.tar.gz bcm5719-llvm-339adf172582d1fb2d069d0f7c68688b0bc44007.zip |
add missing header <shame>
llvm-svn: 156244
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/Support/SourceMgr.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/SourceMgr.h b/llvm/include/llvm/Support/SourceMgr.h index 76967dbf78a..f108f732b85 100644 --- a/llvm/include/llvm/Support/SourceMgr.h +++ b/llvm/include/llvm/Support/SourceMgr.h @@ -123,7 +123,14 @@ public: /// FindLineNumber - Find the line number for the specified location in the /// specified file. This is not a fast method. - unsigned FindLineNumber(SMLoc Loc, int BufferID = -1) const; + unsigned FindLineNumber(SMLoc Loc, int BufferID = -1) const { + return getLineAndColumn(Loc, BufferID).first; + } + + /// getLineAndColumn - Find the line and column number for the specified + /// location in the specified file. This is not a fast method. + std::pair<unsigned, unsigned> + getLineAndColumn(SMLoc Loc, int BufferID = -1) const; /// PrintMessage - Emit a message about the specified location with the /// specified string. |