summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DIE.cpp
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2013-04-04 23:13:11 +0000
committerManman Ren <mren@apple.com>2013-04-04 23:13:11 +0000
commit624a93ee47fd05adbad4ea22b50c554ca23ac0ef (patch)
treea832b8f0b47c514ea0b2a73fa6ba8a644af2ab79 /lib/CodeGen/AsmPrinter/DIE.cpp
parent2e892e4e27ecb6b1af757796841db5ff18df99a9 (diff)
downloadllvm-624a93ee47fd05adbad4ea22b50c554ca23ac0ef.tar.gz
llvm-624a93ee47fd05adbad4ea22b50c554ca23ac0ef.tar.bz2
llvm-624a93ee47fd05adbad4ea22b50c554ca23ac0ef.tar.xz
Debug Info: revert 178722 for now.
There is a difference for FORM_ref_addr between DWARF 2 and DWARF 3+. Since Eric is against guarding DWARF 2 ref_addr with DarwinGDBCompat, we are still in discussion on how to handle this. The correct solution is to update our header to say version 4 instead of version 2 and update tool chains as well. rdar://problem/13559431 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178806 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DIE.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DIE.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIE.cpp b/lib/CodeGen/AsmPrinter/DIE.cpp
index 326fbe5567..57e0acda89 100644
--- a/lib/CodeGen/AsmPrinter/DIE.cpp
+++ b/lib/CodeGen/AsmPrinter/DIE.cpp
@@ -310,12 +310,6 @@ void DIEEntry::EmitValue(AsmPrinter *AP, unsigned Form) const {
AP->EmitInt32(Entry->getOffset());
}
-unsigned DIEEntry::SizeOf(AsmPrinter *AP, unsigned Form) const {
- if (Form == dwarf::DW_FORM_ref_addr)
- return AP->getDataLayout().getPointerSize();
- return sizeof(int32_t);
-}
-
#ifndef NDEBUG
void DIEEntry::print(raw_ostream &O) {
O << format("Die: 0x%lx", (long)(intptr_t)Entry);