diff options
| author | Devang Patel <dpatel@apple.com> | 2009-08-31 22:00:15 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2009-08-31 22:00:15 +0000 |
| commit | 869529c58c7b84080e7ce6eb4de5909dcedf0f21 (patch) | |
| tree | 9f303f68705f2e34e720da3ad7085bb266bd4e9d /llvm/lib | |
| parent | dba696afc0f31e27ed49f47721fdc6f03dd02654 (diff) | |
| download | bcm5719-llvm-869529c58c7b84080e7ce6eb4de5909dcedf0f21.tar.gz bcm5719-llvm-869529c58c7b84080e7ce6eb4de5909dcedf0f21.zip | |
Rename DIBlock as DILexicalBlock.
llvm-svn: 80633
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Analysis/DebugInfo.cpp | 12 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 2 |
2 files changed, 11 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp index 3e3b8023024..92731335af9 100644 --- a/llvm/lib/Analysis/DebugInfo.cpp +++ b/llvm/lib/Analysis/DebugInfo.cpp @@ -235,6 +235,14 @@ bool DIDescriptor::isCompileUnit() const { return Tag == dwarf::DW_TAG_compile_unit; } +/// isLexicalBlock - Return true if the specified tag is DW_TAG_lexical_block. +bool DIDescriptor::isLexicalBlock() const { + assert (!isNull() && "Invalid descriptor!"); + unsigned Tag = getTag(); + + return Tag == dwarf::DW_TAG_lexical_block; +} + //===----------------------------------------------------------------------===// // Simple Descriptor Constructors and other Methods //===----------------------------------------------------------------------===// @@ -758,12 +766,12 @@ DIVariable DIFactory::CreateVariable(unsigned Tag, DIDescriptor Context, /// CreateBlock - This creates a descriptor for a lexical block with the /// specified parent VMContext. -DIBlock DIFactory::CreateBlock(DIDescriptor Context) { +DILexicalBlock DIFactory::CreateLexicalBlock(DIDescriptor Context) { Value *Elts[] = { GetTagConstant(dwarf::DW_TAG_lexical_block), Context.getNode() }; - return DIBlock(MDNode::get(VMContext, &Elts[0], 2)); + return DILexicalBlock(MDNode::get(VMContext, &Elts[0], 2)); } diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 40ff3e49cf7..f7e782c794a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1222,7 +1222,7 @@ DbgScope *DwarfDebug::getOrCreateScope(MDNode *N) { if (Slot) return Slot; DbgScope *Parent = NULL; - DIBlock Block(N); + DILexicalBlock Block(N); // Don't create a new scope if we already created one for an inlined function. DenseMap<const MDNode *, DbgScope *>::iterator |

