add comments, don't require inlined-at to be specified.
authorChris Lattner <sabre@nondot.org>
Thu, 1 Apr 2010 06:29:56 +0000 (06:29 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 1 Apr 2010 06:29:56 +0000 (06:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100092 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/DebugLoc.h

index 300d7401cec7052679acdcd63bf41a0ec3be6f0f..ede1ed305450ffbda19ae5750064b38632906a1f 100644 (file)
@@ -37,8 +37,10 @@ namespace llvm {
   public:
     NewDebugLoc() : LineCol(0), ScopeIdx(0) {}  // Defaults to unknown.
     
+    /// get - Get a new DebugLoc that corresponds to the specified line/col
+    /// scope/inline location.
     static NewDebugLoc get(unsigned Line, unsigned Col,
-                           MDNode *Scope, MDNode *InlinedAt);
+                           MDNode *Scope, MDNode *InlinedAt = 0);
     
     /// getFromDILocation - Translate the DILocation quad into a NewDebugLoc.
     static NewDebugLoc getFromDILocation(MDNode *N);