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 | a22de1fa9f361fa8eddf64dbbf9fb7a4a92130e8 (patch) | |
tree | 15a77c8ee8db5a2104f52ed4a3f0ae48ec143b09 | |
parent | 43cd9e3845fa82b616848ec7e3fbe231406b89ab (diff) | |
download | bcm5719-llvm-a22de1fa9f361fa8eddf64dbbf9fb7a4a92130e8.tar.gz bcm5719-llvm-a22de1fa9f361fa8eddf64dbbf9fb7a4a92130e8.zip |
add comments, don't require inlined-at to be specified.
llvm-svn: 100092
-rw-r--r-- | llvm/include/llvm/Support/DebugLoc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/DebugLoc.h b/llvm/include/llvm/Support/DebugLoc.h index 300d7401cec..ede1ed30545 100644 --- a/llvm/include/llvm/Support/DebugLoc.h +++ b/llvm/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); |