diff options
author | Stuart Hastings <stuart@apple.com> | 2010-07-08 23:25:39 +0000 |
---|---|---|
committer | Stuart Hastings <stuart@apple.com> | 2010-07-08 23:25:39 +0000 |
commit | 99cfb69f17ccf6dca7378fe6d1c60758e5cabd1f (patch) | |
tree | 4aa019e6e53e983da30e8516fa664ee670ccb490 /lib/Analysis/DebugInfo.cpp | |
parent | 21e9445952d12ac4ec72ff59506e2b78e469f208 (diff) | |
download | llvm-99cfb69f17ccf6dca7378fe6d1c60758e5cabd1f.tar.gz llvm-99cfb69f17ccf6dca7378fe6d1c60758e5cabd1f.tar.bz2 llvm-99cfb69f17ccf6dca7378fe6d1c60758e5cabd1f.tar.xz |
Reverting r107918 and r107919. Radar 8063111.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107930 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DebugInfo.cpp')
-rw-r--r-- | lib/Analysis/DebugInfo.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index ca6c2e6d72..c8d0d22ec2 100644 --- a/lib/Analysis/DebugInfo.cpp +++ b/lib/Analysis/DebugInfo.cpp @@ -1107,19 +1107,14 @@ 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, - DIFile F, unsigned LineNo, - unsigned Col) { - // Defeat MDNode uniqing for lexical blocks. - static unsigned int unique_id = 0; + unsigned LineNo, unsigned Col) { Value *Elts[] = { GetTagConstant(dwarf::DW_TAG_lexical_block), Context, ConstantInt::get(Type::getInt32Ty(VMContext), LineNo), - ConstantInt::get(Type::getInt32Ty(VMContext), Col), - F, - ConstantInt::get(Type::getInt32Ty(VMContext), unique_id++) + ConstantInt::get(Type::getInt32Ty(VMContext), Col) }; - return DILexicalBlock(MDNode::get(VMContext, &Elts[0], 6)); + return DILexicalBlock(MDNode::get(VMContext, &Elts[0], 4)); } /// CreateNameSpace - This creates new descriptor for a namespace |