summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-10-04 19:40:33 +0000
committerEric Christopher <echristo@gmail.com>2013-10-04 19:40:33 +0000
commitc19d6f096c0ffc304adc524df9155a1589e7c416 (patch)
treed421750fffcbe6f7c2c07603ee42540823468653 /llvm/lib/CodeGen/AsmPrinter/DIE.cpp
parentec2c9b8eba46806d0889ee7bd72167d206aefed8 (diff)
downloadbcm5719-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.cpp12
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();
OpenPOWER on IntegriCloud