From f0100ff3f6adb41d257ab5bff5fef390a8f458e2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 1 Apr 2010 06:29:56 +0000 Subject: [PATCH] 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 --- include/llvm/Support/DebugLoc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);