diff options
author | Devang Patel <dpatel@apple.com> | 2010-02-16 21:39:34 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-02-16 21:39:34 +0000 |
commit | 7c7cfbbc380120ade2c03d1af74c7df60d1052b0 (patch) | |
tree | d60f0666ff0ec49710234a7bcc72bd50103f421e /llvm/lib/Analysis/DebugInfo.cpp | |
parent | 3e2cad3b1a3aaa1e8e7a28ed10c3c80b0fc261d0 (diff) | |
download | bcm5719-llvm-7c7cfbbc380120ade2c03d1af74c7df60d1052b0.tar.gz bcm5719-llvm-7c7cfbbc380120ade2c03d1af74c7df60d1052b0.zip |
Use line and column number to distinguish two lexical blocks at the same level.
llvm-svn: 96395
Diffstat (limited to 'llvm/lib/Analysis/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/DebugInfo.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp index 258f1dbc63d..5cfe666b15e 100644 --- a/llvm/lib/Analysis/DebugInfo.cpp +++ b/llvm/lib/Analysis/DebugInfo.cpp @@ -1007,12 +1007,15 @@ DIVariable DIFactory::CreateComplexVariable(unsigned Tag, DIDescriptor Context, /// CreateBlock - This creates a descriptor for a lexical block with the /// specified parent VMContext. -DILexicalBlock DIFactory::CreateLexicalBlock(DIDescriptor Context) { +DILexicalBlock DIFactory::CreateLexicalBlock(DIDescriptor Context, + unsigned LineNo, unsigned Col) { Value *Elts[] = { GetTagConstant(dwarf::DW_TAG_lexical_block), - Context.getNode() + Context.getNode(), + ConstantInt::get(Type::getInt32Ty(VMContext), LineNo), + ConstantInt::get(Type::getInt32Ty(VMContext), Col) }; - return DILexicalBlock(MDNode::get(VMContext, &Elts[0], 2)); + return DILexicalBlock(MDNode::get(VMContext, &Elts[0], 4)); } /// CreateNameSpace - This creates new descriptor for a namespace |