From: Chris Lattner Date: Thu, 1 Apr 2010 06:29:56 +0000 (+0000) Subject: add comments, don't require inlined-at to be specified. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f0100ff3f6adb41d257ab5bff5fef390a8f458e2;p=oota-llvm.git add comments, don't require inlined-at to be specified. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100092 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/DebugLoc.h b/include/llvm/Support/DebugLoc.h index 300d7401cec..ede1ed30545 100644 --- a/include/llvm/Support/DebugLoc.h +++ b/include/llvm/Support/DebugLoc.h @@ -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);