[llvm-commits] [llvm] r100092 - /llvm/trunk/include/llvm/Support/DebugLoc.h

Chris Lattner sabre at nondot.org
Wed Mar 31 23:29:56 PDT 2010


Author: lattner
Date: Thu Apr  1 01:29:56 2010
New Revision: 100092

URL: http://llvm.org/viewvc/llvm-project?rev=100092&view=rev
Log:
add comments, don't require inlined-at to be specified.

Modified:
    llvm/trunk/include/llvm/Support/DebugLoc.h

Modified: llvm/trunk/include/llvm/Support/DebugLoc.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/DebugLoc.h?rev=100092&r1=100091&r2=100092&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/DebugLoc.h (original)
+++ llvm/trunk/include/llvm/Support/DebugLoc.h Thu Apr  1 01:29:56 2010
@@ -37,8 +37,10 @@
   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);





More information about the llvm-commits mailing list