add missing header <shame>
authorChris Lattner <sabre@nondot.org>
Sat, 5 May 2012 22:04:11 +0000 (22:04 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 5 May 2012 22:04:11 +0000 (22:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156244 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/SourceMgr.h

index 76967dbf78aa8d61ecd17cb5427e0248688f44c3..f108f732b854e62373ae777484e040e0807c7565 100644 (file)
@@ -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.