diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-01 06:29:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-01 06:29:56 +0000 |
commit | f0100ff3f6adb41d257ab5bff5fef390a8f458e2 (patch) | |
tree | f720423cce2f574d882b7bf333e9faa2de62df6d | |
parent | 255f20f7f76e4ca1ac1c73294852cb6fcb18c77d (diff) |
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
-rw-r--r-- | include/llvm/Support/DebugLoc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Support/DebugLoc.h b/include/llvm/Support/DebugLoc.h index 300d7401ce..ede1ed3054 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); |