blob: 5f451a7e576395e8ebb036a3683e4143d35beb25 [file] [log] [blame]
Bill Wendling88423ee2009-05-15 00:11:17 +00001//===--- lib/CodeGen/DIE.cpp - DWARF Info Entries -------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// Data structures for DWARF info entries.
Eric Christopherff348452013-01-07 22:40:45 +000011//
Bill Wendling88423ee2009-05-15 00:11:17 +000012//===----------------------------------------------------------------------===//
13
14#include "DIE.h"
Benjamin Kramer1efd4fd52010-01-17 07:46:39 +000015#include "llvm/ADT/Twine.h"
Bill Wendling88423ee2009-05-15 00:11:17 +000016#include "llvm/CodeGen/AsmPrinter.h"
Chandler Carruth0b8c9a82013-01-02 11:36:10 +000017#include "llvm/IR/DataLayout.h"
Chris Lattneraf76e592009-08-22 20:48:53 +000018#include "llvm/MC/MCAsmInfo.h"
Chris Lattnerbcb83e52010-01-20 07:41:15 +000019#include "llvm/MC/MCStreamer.h"
Chris Lattner858431d2010-01-16 18:50:28 +000020#include "llvm/MC/MCSymbol.h"
Benjamin Kramer345ef342010-03-31 19:34:01 +000021#include "llvm/Support/Allocator.h"
David Greene0c8b6e62009-12-24 00:27:55 +000022#include "llvm/Support/Debug.h"
Torok Edwinc25e7582009-07-11 20:10:48 +000023#include "llvm/Support/ErrorHandling.h"
Chris Lattnerb01acfa2009-08-23 01:01:17 +000024#include "llvm/Support/Format.h"
Chris Lattner0ad9c912010-01-22 22:09:00 +000025#include "llvm/Support/FormattedStream.h"
Bill Wendling88423ee2009-05-15 00:11:17 +000026using namespace llvm;
27
28//===----------------------------------------------------------------------===//
29// DIEAbbrevData Implementation
30//===----------------------------------------------------------------------===//
31
32/// Profile - Used to gather unique data for the abbreviation folding set.
33///
34void DIEAbbrevData::Profile(FoldingSetNodeID &ID) const {
35 ID.AddInteger(Attribute);
36 ID.AddInteger(Form);
37}
38
39//===----------------------------------------------------------------------===//
40// DIEAbbrev Implementation
41//===----------------------------------------------------------------------===//
42
43/// Profile - Used to gather unique data for the abbreviation folding set.
44///
45void DIEAbbrev::Profile(FoldingSetNodeID &ID) const {
46 ID.AddInteger(Tag);
47 ID.AddInteger(ChildrenFlag);
48
49 // For each attribute description.
50 for (unsigned i = 0, N = Data.size(); i < N; ++i)
51 Data[i].Profile(ID);
52}
53
54/// Emit - Print the abbreviation using the specified asm printer.
55///
Chris Lattnerd38fee82010-04-05 00:13:49 +000056void DIEAbbrev::Emit(AsmPrinter *AP) const {
Bill Wendling88423ee2009-05-15 00:11:17 +000057 // Emit its Dwarf tag type.
Chris Lattnerd38fee82010-04-05 00:13:49 +000058 AP->EmitULEB128(Tag, dwarf::TagString(Tag));
Bill Wendling88423ee2009-05-15 00:11:17 +000059
60 // Emit whether it has children DIEs.
Chris Lattnerd38fee82010-04-05 00:13:49 +000061 AP->EmitULEB128(ChildrenFlag, dwarf::ChildrenString(ChildrenFlag));
Bill Wendling88423ee2009-05-15 00:11:17 +000062
63 // For each attribute description.
64 for (unsigned i = 0, N = Data.size(); i < N; ++i) {
65 const DIEAbbrevData &AttrData = Data[i];
66
67 // Emit attribute type.
Chris Lattnerd38fee82010-04-05 00:13:49 +000068 AP->EmitULEB128(AttrData.getAttribute(),
Nick Lewycky3bbb6f72011-07-29 03:49:23 +000069 dwarf::AttributeString(AttrData.getAttribute()));
Bill Wendling88423ee2009-05-15 00:11:17 +000070
71 // Emit form type.
Chris Lattnerd38fee82010-04-05 00:13:49 +000072 AP->EmitULEB128(AttrData.getForm(),
73 dwarf::FormEncodingString(AttrData.getForm()));
Bill Wendling88423ee2009-05-15 00:11:17 +000074 }
75
76 // Mark end of abbreviation.
Chris Lattnerd38fee82010-04-05 00:13:49 +000077 AP->EmitULEB128(0, "EOM(1)");
78 AP->EmitULEB128(0, "EOM(2)");
Bill Wendling88423ee2009-05-15 00:11:17 +000079}
80
81#ifndef NDEBUG
Chris Lattnerb01acfa2009-08-23 01:01:17 +000082void DIEAbbrev::print(raw_ostream &O) {
Bill Wendling88423ee2009-05-15 00:11:17 +000083 O << "Abbreviation @"
Chris Lattnerb01acfa2009-08-23 01:01:17 +000084 << format("0x%lx", (long)(intptr_t)this)
Bill Wendling88423ee2009-05-15 00:11:17 +000085 << " "
86 << dwarf::TagString(Tag)
87 << " "
88 << dwarf::ChildrenString(ChildrenFlag)
Chris Lattnerb01acfa2009-08-23 01:01:17 +000089 << '\n';
Bill Wendling88423ee2009-05-15 00:11:17 +000090
91 for (unsigned i = 0, N = Data.size(); i < N; ++i) {
92 O << " "
93 << dwarf::AttributeString(Data[i].getAttribute())
94 << " "
95 << dwarf::FormEncodingString(Data[i].getForm())
Chris Lattnerb01acfa2009-08-23 01:01:17 +000096 << '\n';
Bill Wendling88423ee2009-05-15 00:11:17 +000097 }
98}
David Greene0c8b6e62009-12-24 00:27:55 +000099void DIEAbbrev::dump() { print(dbgs()); }
Bill Wendling88423ee2009-05-15 00:11:17 +0000100#endif
101
102//===----------------------------------------------------------------------===//
103// DIE Implementation
104//===----------------------------------------------------------------------===//
105
106DIE::~DIE() {
107 for (unsigned i = 0, N = Children.size(); i < N; ++i)
108 delete Children[i];
109}
110
Eric Christopher3bf2bcd2013-05-06 17:50:46 +0000111/// Climb up the parent chain to get the compile unit DIE to which this DIE
112/// belongs.
Eric Christopher4d7f2ce2013-05-14 21:33:10 +0000113DIE *DIE::getCompileUnit() {
114 DIE *p = this;
Manman Renbc3e96f2013-03-12 18:27:15 +0000115 while (p) {
116 if (p->getTag() == dwarf::DW_TAG_compile_unit)
117 return p;
118 p = p->getParent();
119 }
Manman Renb1e052a2013-03-13 18:33:41 +0000120 llvm_unreachable("We should not have orphaned DIEs.");
Manman Renbc3e96f2013-03-12 18:27:15 +0000121}
122
Bill Wendling88423ee2009-05-15 00:11:17 +0000123#ifndef NDEBUG
Eric Christopher30cb8362013-05-06 17:50:50 +0000124void DIE::print(raw_ostream &O, unsigned IndentCount) const {
Bill Wendling88423ee2009-05-15 00:11:17 +0000125 const std::string Indent(IndentCount, ' ');
126 bool isBlock = Abbrev.getTag() == 0;
127
128 if (!isBlock) {
129 O << Indent
130 << "Die: "
Chris Lattnerb01acfa2009-08-23 01:01:17 +0000131 << format("0x%lx", (long)(intptr_t)this)
Bill Wendling88423ee2009-05-15 00:11:17 +0000132 << ", Offset: " << Offset
Chris Lattner0d9d70f2010-03-09 23:38:23 +0000133 << ", Size: " << Size << "\n";
Bill Wendling88423ee2009-05-15 00:11:17 +0000134
135 O << Indent
136 << dwarf::TagString(Abbrev.getTag())
137 << " "
Chris Lattner0d9d70f2010-03-09 23:38:23 +0000138 << dwarf::ChildrenString(Abbrev.getChildrenFlag()) << "\n";
Bill Wendling88423ee2009-05-15 00:11:17 +0000139 } else {
Chris Lattner0d9d70f2010-03-09 23:38:23 +0000140 O << "Size: " << Size << "\n";
Bill Wendling88423ee2009-05-15 00:11:17 +0000141 }
Bill Wendling88423ee2009-05-15 00:11:17 +0000142
Eric Christopherf7cef702013-03-29 23:34:06 +0000143 const SmallVectorImpl<DIEAbbrevData> &Data = Abbrev.getData();
Bill Wendling88423ee2009-05-15 00:11:17 +0000144
145 IndentCount += 2;
146 for (unsigned i = 0, N = Data.size(); i < N; ++i) {
147 O << Indent;
148
149 if (!isBlock)
150 O << dwarf::AttributeString(Data[i].getAttribute());
151 else
152 O << "Blk[" << i << "]";
153
154 O << " "
155 << dwarf::FormEncodingString(Data[i].getForm())
156 << " ";
157 Values[i]->print(O);
158 O << "\n";
159 }
160 IndentCount -= 2;
161
162 for (unsigned j = 0, M = Children.size(); j < M; ++j) {
Eric Christopher30cb8362013-05-06 17:50:50 +0000163 Children[j]->print(O, IndentCount+4);
Bill Wendling88423ee2009-05-15 00:11:17 +0000164 }
165
166 if (!isBlock) O << "\n";
Bill Wendling88423ee2009-05-15 00:11:17 +0000167}
168
169void DIE::dump() {
David Greene0c8b6e62009-12-24 00:27:55 +0000170 print(dbgs());
Bill Wendling88423ee2009-05-15 00:11:17 +0000171}
172#endif
173
David Blaikie2d24e2a2011-12-20 02:50:00 +0000174void DIEValue::anchor() { }
Bill Wendling88423ee2009-05-15 00:11:17 +0000175
176#ifndef NDEBUG
Eric Christopher813419e2013-05-31 22:50:40 +0000177void DIEValue::dump() const {
David Greene0c8b6e62009-12-24 00:27:55 +0000178 print(dbgs());
Bill Wendling88423ee2009-05-15 00:11:17 +0000179}
180#endif
181
182//===----------------------------------------------------------------------===//
183// DIEInteger Implementation
184//===----------------------------------------------------------------------===//
185
186/// EmitValue - Emit integer of appropriate size.
187///
Chris Lattnerd38fee82010-04-05 00:13:49 +0000188void DIEInteger::EmitValue(AsmPrinter *Asm, unsigned Form) const {
Chris Lattnerbcb83e52010-01-20 07:41:15 +0000189 unsigned Size = ~0U;
Bill Wendling88423ee2009-05-15 00:11:17 +0000190 switch (Form) {
Eric Christopher873cf0a2012-08-24 01:14:27 +0000191 case dwarf::DW_FORM_flag_present:
192 // Emit something to keep the lines and comments in sync.
193 // FIXME: Is there a better way to do this?
194 if (Asm->OutStreamer.hasRawTextSupport())
195 Asm->OutStreamer.EmitRawText(StringRef(""));
196 return;
Bill Wendling88423ee2009-05-15 00:11:17 +0000197 case dwarf::DW_FORM_flag: // Fall thru
198 case dwarf::DW_FORM_ref1: // Fall thru
Chris Lattnerbcb83e52010-01-20 07:41:15 +0000199 case dwarf::DW_FORM_data1: Size = 1; break;
Bill Wendling88423ee2009-05-15 00:11:17 +0000200 case dwarf::DW_FORM_ref2: // Fall thru
Chris Lattnerbcb83e52010-01-20 07:41:15 +0000201 case dwarf::DW_FORM_data2: Size = 2; break;
Eric Christopherd96c72a2013-01-17 02:59:59 +0000202 case dwarf::DW_FORM_sec_offset: // Fall thru
Bill Wendling88423ee2009-05-15 00:11:17 +0000203 case dwarf::DW_FORM_ref4: // Fall thru
Chris Lattnerbcb83e52010-01-20 07:41:15 +0000204 case dwarf::DW_FORM_data4: Size = 4; break;
Bill Wendling88423ee2009-05-15 00:11:17 +0000205 case dwarf::DW_FORM_ref8: // Fall thru
Chris Lattnerbcb83e52010-01-20 07:41:15 +0000206 case dwarf::DW_FORM_data8: Size = 8; break;
Eric Christopherdd8e9f32013-01-07 19:32:41 +0000207 case dwarf::DW_FORM_GNU_str_index: Asm->EmitULEB128(Integer); return;
Eric Christopher72f7bfb2013-01-15 23:56:56 +0000208 case dwarf::DW_FORM_GNU_addr_index: Asm->EmitULEB128(Integer); return;
Chris Lattner7e1a8f82010-04-04 19:09:29 +0000209 case dwarf::DW_FORM_udata: Asm->EmitULEB128(Integer); return;
210 case dwarf::DW_FORM_sdata: Asm->EmitSLEB128(Integer); return;
Eric Christopher4984e012012-09-10 23:34:03 +0000211 case dwarf::DW_FORM_addr:
Chandler Carruth426c2bf2012-11-01 09:14:31 +0000212 Size = Asm->getDataLayout().getPointerSize(); break;
Torok Edwinc23197a2009-07-14 16:55:14 +0000213 default: llvm_unreachable("DIE Value form not supported yet");
Bill Wendling88423ee2009-05-15 00:11:17 +0000214 }
Eric Christopherca1dd052013-01-09 01:35:34 +0000215 Asm->OutStreamer.EmitIntValue(Integer, Size);
Bill Wendling88423ee2009-05-15 00:11:17 +0000216}
217
218/// SizeOf - Determine size of integer value in bytes.
219///
Chris Lattnera37d5382010-04-05 00:18:22 +0000220unsigned DIEInteger::SizeOf(AsmPrinter *AP, unsigned Form) const {
Bill Wendling88423ee2009-05-15 00:11:17 +0000221 switch (Form) {
Eric Christopher17dd9a92012-08-29 17:59:32 +0000222 case dwarf::DW_FORM_flag_present: return 0;
Bill Wendling88423ee2009-05-15 00:11:17 +0000223 case dwarf::DW_FORM_flag: // Fall thru
224 case dwarf::DW_FORM_ref1: // Fall thru
225 case dwarf::DW_FORM_data1: return sizeof(int8_t);
226 case dwarf::DW_FORM_ref2: // Fall thru
227 case dwarf::DW_FORM_data2: return sizeof(int16_t);
Eric Christopherd96c72a2013-01-17 02:59:59 +0000228 case dwarf::DW_FORM_sec_offset: // Fall thru
Bill Wendling88423ee2009-05-15 00:11:17 +0000229 case dwarf::DW_FORM_ref4: // Fall thru
230 case dwarf::DW_FORM_data4: return sizeof(int32_t);
231 case dwarf::DW_FORM_ref8: // Fall thru
232 case dwarf::DW_FORM_data8: return sizeof(int64_t);
Eric Christopherdd8e9f32013-01-07 19:32:41 +0000233 case dwarf::DW_FORM_GNU_str_index: return MCAsmInfo::getULEB128Size(Integer);
Eric Christopher72f7bfb2013-01-15 23:56:56 +0000234 case dwarf::DW_FORM_GNU_addr_index: return MCAsmInfo::getULEB128Size(Integer);
Chris Lattneraf76e592009-08-22 20:48:53 +0000235 case dwarf::DW_FORM_udata: return MCAsmInfo::getULEB128Size(Integer);
236 case dwarf::DW_FORM_sdata: return MCAsmInfo::getSLEB128Size(Integer);
Chandler Carruth426c2bf2012-11-01 09:14:31 +0000237 case dwarf::DW_FORM_addr: return AP->getDataLayout().getPointerSize();
David Blaikie4d6ccb52012-01-20 21:51:11 +0000238 default: llvm_unreachable("DIE Value form not supported yet");
Bill Wendling88423ee2009-05-15 00:11:17 +0000239 }
Bill Wendling88423ee2009-05-15 00:11:17 +0000240}
241
Bill Wendling88423ee2009-05-15 00:11:17 +0000242#ifndef NDEBUG
Eric Christopher813419e2013-05-31 22:50:40 +0000243void DIEInteger::print(raw_ostream &O) const {
Benjamin Kramer41a96492011-11-05 08:57:40 +0000244 O << "Int: " << (int64_t)Integer << " 0x";
245 O.write_hex(Integer);
Bill Wendling88423ee2009-05-15 00:11:17 +0000246}
247#endif
248
249//===----------------------------------------------------------------------===//
Chris Lattner4faf59a2010-03-08 22:31:46 +0000250// DIELabel Implementation
Bill Wendling88423ee2009-05-15 00:11:17 +0000251//===----------------------------------------------------------------------===//
252
253/// EmitValue - Emit label value.
254///
Chris Lattnerd38fee82010-04-05 00:13:49 +0000255void DIELabel::EmitValue(AsmPrinter *AP, unsigned Form) const {
Eric Christopherca1dd052013-01-09 01:35:34 +0000256 AP->OutStreamer.EmitSymbolValue(Label, SizeOf(AP, Form));
Bill Wendling88423ee2009-05-15 00:11:17 +0000257}
258
259/// SizeOf - Determine size of label value in bytes.
260///
Chris Lattnera37d5382010-04-05 00:18:22 +0000261unsigned DIELabel::SizeOf(AsmPrinter *AP, unsigned Form) const {
Bill Wendling88423ee2009-05-15 00:11:17 +0000262 if (Form == dwarf::DW_FORM_data4) return 4;
Eric Christopher446b88f2013-01-17 03:00:04 +0000263 if (Form == dwarf::DW_FORM_sec_offset) return 4;
Nick Lewycky390c40d2011-10-27 06:44:11 +0000264 if (Form == dwarf::DW_FORM_strp) return 4;
Chandler Carruth426c2bf2012-11-01 09:14:31 +0000265 return AP->getDataLayout().getPointerSize();
Bill Wendling88423ee2009-05-15 00:11:17 +0000266}
267
Bill Wendling88423ee2009-05-15 00:11:17 +0000268#ifndef NDEBUG
Eric Christopher813419e2013-05-31 22:50:40 +0000269void DIELabel::print(raw_ostream &O) const {
Chris Lattnerb98b1bf2010-03-08 22:23:36 +0000270 O << "Lbl: " << Label->getName();
Bill Wendling88423ee2009-05-15 00:11:17 +0000271}
272#endif
273
274//===----------------------------------------------------------------------===//
Bill Wendling88423ee2009-05-15 00:11:17 +0000275// DIEDelta Implementation
276//===----------------------------------------------------------------------===//
277
278/// EmitValue - Emit delta value.
279///
Chris Lattnerd38fee82010-04-05 00:13:49 +0000280void DIEDelta::EmitValue(AsmPrinter *AP, unsigned Form) const {
Chris Lattnera37d5382010-04-05 00:18:22 +0000281 AP->EmitLabelDifference(LabelHi, LabelLo, SizeOf(AP, Form));
Bill Wendling88423ee2009-05-15 00:11:17 +0000282}
283
284/// SizeOf - Determine size of delta value in bytes.
285///
Chris Lattnera37d5382010-04-05 00:18:22 +0000286unsigned DIEDelta::SizeOf(AsmPrinter *AP, unsigned Form) const {
Bill Wendling88423ee2009-05-15 00:11:17 +0000287 if (Form == dwarf::DW_FORM_data4) return 4;
Nick Lewycky390c40d2011-10-27 06:44:11 +0000288 if (Form == dwarf::DW_FORM_strp) return 4;
Chandler Carruth426c2bf2012-11-01 09:14:31 +0000289 return AP->getDataLayout().getPointerSize();
Bill Wendling88423ee2009-05-15 00:11:17 +0000290}
291
Bill Wendling88423ee2009-05-15 00:11:17 +0000292#ifndef NDEBUG
Eric Christopher813419e2013-05-31 22:50:40 +0000293void DIEDelta::print(raw_ostream &O) const {
Chris Lattnerb98b1bf2010-03-08 22:23:36 +0000294 O << "Del: " << LabelHi->getName() << "-" << LabelLo->getName();
Bill Wendling88423ee2009-05-15 00:11:17 +0000295}
296#endif
297
298//===----------------------------------------------------------------------===//
299// DIEEntry Implementation
300//===----------------------------------------------------------------------===//
301
302/// EmitValue - Emit debug information entry offset.
303///
Chris Lattnerd38fee82010-04-05 00:13:49 +0000304void DIEEntry::EmitValue(AsmPrinter *AP, unsigned Form) const {
305 AP->EmitInt32(Entry->getOffset());
Bill Wendling88423ee2009-05-15 00:11:17 +0000306}
307
Bill Wendling88423ee2009-05-15 00:11:17 +0000308#ifndef NDEBUG
Eric Christopher813419e2013-05-31 22:50:40 +0000309void DIEEntry::print(raw_ostream &O) const {
Chris Lattnerb01acfa2009-08-23 01:01:17 +0000310 O << format("Die: 0x%lx", (long)(intptr_t)Entry);
Bill Wendling88423ee2009-05-15 00:11:17 +0000311}
312#endif
313
314//===----------------------------------------------------------------------===//
315// DIEBlock Implementation
316//===----------------------------------------------------------------------===//
317
318/// ComputeSize - calculate the size of the block.
319///
Chris Lattnera37d5382010-04-05 00:18:22 +0000320unsigned DIEBlock::ComputeSize(AsmPrinter *AP) {
Bill Wendling88423ee2009-05-15 00:11:17 +0000321 if (!Size) {
Eric Christopherf7cef702013-03-29 23:34:06 +0000322 const SmallVectorImpl<DIEAbbrevData> &AbbrevData = Abbrev.getData();
Bill Wendling88423ee2009-05-15 00:11:17 +0000323 for (unsigned i = 0, N = Values.size(); i < N; ++i)
Chris Lattnera37d5382010-04-05 00:18:22 +0000324 Size += Values[i]->SizeOf(AP, AbbrevData[i].getForm());
Bill Wendling88423ee2009-05-15 00:11:17 +0000325 }
326
327 return Size;
328}
329
330/// EmitValue - Emit block data.
331///
Chris Lattnerd38fee82010-04-05 00:13:49 +0000332void DIEBlock::EmitValue(AsmPrinter *Asm, unsigned Form) const {
Bill Wendling88423ee2009-05-15 00:11:17 +0000333 switch (Form) {
Craig Topper5e25ee82012-02-05 08:31:47 +0000334 default: llvm_unreachable("Improper form for block");
Chris Lattner7e1a8f82010-04-04 19:09:29 +0000335 case dwarf::DW_FORM_block1: Asm->EmitInt8(Size); break;
336 case dwarf::DW_FORM_block2: Asm->EmitInt16(Size); break;
337 case dwarf::DW_FORM_block4: Asm->EmitInt32(Size); break;
338 case dwarf::DW_FORM_block: Asm->EmitULEB128(Size); break;
Bill Wendling88423ee2009-05-15 00:11:17 +0000339 }
340
Eric Christopherf7cef702013-03-29 23:34:06 +0000341 const SmallVectorImpl<DIEAbbrevData> &AbbrevData = Abbrev.getData();
Chris Lattner0d9d70f2010-03-09 23:38:23 +0000342 for (unsigned i = 0, N = Values.size(); i < N; ++i)
Chris Lattnerd38fee82010-04-05 00:13:49 +0000343 Values[i]->EmitValue(Asm, AbbrevData[i].getForm());
Bill Wendling88423ee2009-05-15 00:11:17 +0000344}
345
346/// SizeOf - Determine size of block data in bytes.
347///
Chris Lattnera37d5382010-04-05 00:18:22 +0000348unsigned DIEBlock::SizeOf(AsmPrinter *AP, unsigned Form) const {
Bill Wendling88423ee2009-05-15 00:11:17 +0000349 switch (Form) {
350 case dwarf::DW_FORM_block1: return Size + sizeof(int8_t);
351 case dwarf::DW_FORM_block2: return Size + sizeof(int16_t);
352 case dwarf::DW_FORM_block4: return Size + sizeof(int32_t);
Chris Lattner7e1a8f82010-04-04 19:09:29 +0000353 case dwarf::DW_FORM_block: return Size + MCAsmInfo::getULEB128Size(Size);
David Blaikie4d6ccb52012-01-20 21:51:11 +0000354 default: llvm_unreachable("Improper form for block");
Bill Wendling88423ee2009-05-15 00:11:17 +0000355 }
Bill Wendling88423ee2009-05-15 00:11:17 +0000356}
357
Bill Wendling88423ee2009-05-15 00:11:17 +0000358#ifndef NDEBUG
Eric Christopher813419e2013-05-31 22:50:40 +0000359void DIEBlock::print(raw_ostream &O) const {
Bill Wendling88423ee2009-05-15 00:11:17 +0000360 O << "Blk: ";
361 DIE::print(O, 5);
362}
363#endif