diff options
author | Devang Patel <dpatel@apple.com> | 2009-11-23 19:11:20 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-11-23 19:11:20 +0000 |
commit | e54a5e88a57a78b1e24430f27bdf0a8f7f0e8e23 (patch) | |
tree | d8bab5a98c2923b91350f3a185c6c1d681272a26 /include | |
parent | 05f6fa874e8d187483a836ccb4906bb3807bb305 (diff) | |
download | llvm-e54a5e88a57a78b1e24430f27bdf0a8f7f0e8e23.tar.gz llvm-e54a5e88a57a78b1e24430f27bdf0a8f7f0e8e23.tar.bz2 llvm-e54a5e88a57a78b1e24430f27bdf0a8f7f0e8e23.tar.xz |
Add CreateLocation varinat that accepts MDNode (with a default value).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89689 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/DebugInfo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h index 3c40d65a48..aa99a133f2 100644 --- a/include/llvm/Analysis/DebugInfo.h +++ b/include/llvm/Analysis/DebugInfo.h @@ -598,6 +598,10 @@ namespace llvm { DILocation CreateLocation(unsigned LineNo, unsigned ColumnNo, DIScope S, DILocation OrigLoc); + /// CreateLocation - Creates a debug info location. + DILocation CreateLocation(unsigned LineNo, unsigned ColumnNo, + DIScope S, MDNode *OrigLoc = 0); + /// InsertDeclare - Insert a new llvm.dbg.declare intrinsic call. Instruction *InsertDeclare(llvm::Value *Storage, DIVariable D, BasicBlock *InsertAtEnd); |