diff options
author | Eric Christopher <echristo@gmail.com> | 2013-10-04 19:40:33 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-10-04 19:40:33 +0000 |
commit | c19d6f096c0ffc304adc524df9155a1589e7c416 (patch) | |
tree | d421750fffcbe6f7c2c07603ee42540823468653 /llvm/lib/CodeGen/AsmPrinter/DIE.cpp | |
parent | ec2c9b8eba46806d0889ee7bd72167d206aefed8 (diff) | |
download | bcm5719-llvm-c19d6f096c0ffc304adc524df9155a1589e7c416.tar.gz bcm5719-llvm-c19d6f096c0ffc304adc524df9155a1589e7c416.zip |
Temporarily revert r176882 as it needs to be implemented in a different
way for all platforms.
llvm-svn: 191975
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DIE.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DIE.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp index 7fb3c90dcb6..5f6d5bb9619 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp @@ -110,18 +110,6 @@ DIE::~DIE() { delete Children[i]; } -/// Climb up the parent chain to get the compile unit DIE to which this DIE -/// belongs. -DIE *DIE::getCompileUnit() { - DIE *p = this; - while (p) { - if (p->getTag() == dwarf::DW_TAG_compile_unit) - return p; - p = p->getParent(); - } - llvm_unreachable("We should not have orphaned DIEs."); -} - DIEValue *DIE::findAttribute(uint16_t Attribute) { const SmallVectorImpl<DIEValue *> &Values = getValues(); const DIEAbbrev &Abbrevs = getAbbrev(); |