blob: 194c324ab6c433f46c3034c89de8091412b4870c [file] [log] [blame]
Kevin Enderby7cbf73a2010-07-28 20:55:35 +00001//===- lib/MC/MCDwarf.cpp - MCDwarf implementation ------------------------===//
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#include "llvm/MC/MCDwarf.h"
Kevin Enderbyc0957932010-09-30 16:52:03 +000011#include "llvm/MC/MCAssembler.h"
Rafael Espindolaad8aaa02010-11-22 11:53:17 +000012#include "llvm/MC/MCStreamer.h"
Kevin Enderbyc0957932010-09-30 16:52:03 +000013#include "llvm/MC/MCSymbol.h"
14#include "llvm/MC/MCExpr.h"
15#include "llvm/MC/MCContext.h"
16#include "llvm/MC/MCObjectWriter.h"
17#include "llvm/ADT/SmallString.h"
Kevin Enderby7cbf73a2010-07-28 20:55:35 +000018#include "llvm/Support/Debug.h"
19#include "llvm/Support/raw_ostream.h"
Kevin Enderbyc0957932010-09-30 16:52:03 +000020#include "llvm/Target/TargetAsmBackend.h"
Kevin Enderby7cbf73a2010-07-28 20:55:35 +000021using namespace llvm;
22
Kevin Enderbyc0957932010-09-30 16:52:03 +000023// Given a special op, return the address skip amount (in units of
24// DWARF2_LINE_MIN_INSN_LENGTH.
25#define SPECIAL_ADDR(op) (((op) - DWARF2_LINE_OPCODE_BASE)/DWARF2_LINE_RANGE)
26
27// The maximum address skip amount that can be encoded with a special op.
28#define MAX_SPECIAL_ADDR_DELTA SPECIAL_ADDR(255)
29
30// First special line opcode - leave room for the standard opcodes.
31// Note: If you want to change this, you'll have to update the
32// "standard_opcode_lengths" table that is emitted in DwarfFileTable::Emit().
33#define DWARF2_LINE_OPCODE_BASE 13
34
35// Minimum line offset in a special line info. opcode. This value
36// was chosen to give a reasonable range of values.
37#define DWARF2_LINE_BASE -5
38
39// Range of line offsets in a special line info. opcode.
40# define DWARF2_LINE_RANGE 14
41
42// Define the architecture-dependent minimum instruction length (in bytes).
43// This value should be rather too small than too big.
44# define DWARF2_LINE_MIN_INSN_LENGTH 1
45
46// Note: when DWARF2_LINE_MIN_INSN_LENGTH == 1 which is the current setting,
47// this routine is a nop and will be optimized away.
48static inline uint64_t ScaleAddrDelta(uint64_t AddrDelta)
49{
50 if (DWARF2_LINE_MIN_INSN_LENGTH == 1)
51 return AddrDelta;
52 if (AddrDelta % DWARF2_LINE_MIN_INSN_LENGTH != 0) {
53 // TODO: report this error, but really only once.
54 ;
55 }
56 return AddrDelta / DWARF2_LINE_MIN_INSN_LENGTH;
57}
58
59//
60// This is called when an instruction is assembled into the specified section
61// and if there is information from the last .loc directive that has yet to have
62// a line entry made for it is made.
63//
Rafael Espindola195a0ce2010-11-19 02:26:16 +000064void MCLineEntry::Make(MCStreamer *MCOS, const MCSection *Section) {
Kevin Enderbyc0957932010-09-30 16:52:03 +000065 if (!MCOS->getContext().getDwarfLocSeen())
66 return;
67
68 // Create a symbol at in the current section for use in the line entry.
69 MCSymbol *LineSym = MCOS->getContext().CreateTempSymbol();
70 // Set the value of the symbol to use for the MCLineEntry.
71 MCOS->EmitLabel(LineSym);
72
73 // Get the current .loc info saved in the context.
74 const MCDwarfLoc &DwarfLoc = MCOS->getContext().getCurrentDwarfLoc();
75
76 // Create a (local) line entry with the symbol and the current .loc info.
77 MCLineEntry LineEntry(LineSym, DwarfLoc);
78
79 // clear DwarfLocSeen saying the current .loc info is now used.
Kevin Enderby3f55c242010-10-04 20:17:24 +000080 MCOS->getContext().ClearDwarfLocSeen();
Kevin Enderbyc0957932010-09-30 16:52:03 +000081
82 // Get the MCLineSection for this section, if one does not exist for this
83 // section create it.
Rafael Espindola17fd7bd2010-11-19 07:41:23 +000084 const DenseMap<const MCSection *, MCLineSection *> &MCLineSections =
Kevin Enderbyc0957932010-09-30 16:52:03 +000085 MCOS->getContext().getMCLineSections();
Rafael Espindola17fd7bd2010-11-19 07:41:23 +000086 MCLineSection *LineSection = MCLineSections.lookup(Section);
Kevin Enderbyc0957932010-09-30 16:52:03 +000087 if (!LineSection) {
88 // Create a new MCLineSection. This will be deleted after the dwarf line
89 // table is created using it by iterating through the MCLineSections
90 // DenseMap.
91 LineSection = new MCLineSection;
92 // Save a pointer to the new LineSection into the MCLineSections DenseMap.
Rafael Espindola17fd7bd2010-11-19 07:41:23 +000093 MCOS->getContext().addMCLineSection(Section, LineSection);
Kevin Enderbyc0957932010-09-30 16:52:03 +000094 }
95
96 // Add the line entry to this section's entries.
97 LineSection->addLineEntry(LineEntry);
98}
99
100//
101// This helper routine returns an expression of End - Start + IntVal .
102//
Rafael Espindola195a0ce2010-11-19 02:26:16 +0000103static inline const MCExpr *MakeStartMinusEndExpr(MCStreamer *MCOS,
Kevin Enderbyc0957932010-09-30 16:52:03 +0000104 MCSymbol *Start,
105 MCSymbol *End, int IntVal) {
106 MCSymbolRefExpr::VariantKind Variant = MCSymbolRefExpr::VK_None;
107 const MCExpr *Res =
108 MCSymbolRefExpr::Create(End, Variant, MCOS->getContext());
109 const MCExpr *RHS =
110 MCSymbolRefExpr::Create(Start, Variant, MCOS->getContext());
111 const MCExpr *Res1 =
112 MCBinaryExpr::Create(MCBinaryExpr::Sub, Res, RHS, MCOS->getContext());
113 const MCExpr *Res2 =
114 MCConstantExpr::Create(IntVal, MCOS->getContext());
115 const MCExpr *Res3 =
116 MCBinaryExpr::Create(MCBinaryExpr::Sub, Res1, Res2, MCOS->getContext());
117 return Res3;
118}
119
Kevin Enderbyc0957932010-09-30 16:52:03 +0000120//
121// This emits the Dwarf line table for the specified section from the entries
122// in the LineSection.
123//
Rafael Espindola195a0ce2010-11-19 02:26:16 +0000124static inline void EmitDwarfLineTable(MCStreamer *MCOS,
Kevin Enderbyc0957932010-09-30 16:52:03 +0000125 const MCSection *Section,
Rafael Espindola17fd7bd2010-11-19 07:41:23 +0000126 const MCLineSection *LineSection,
Rafael Espindola32a006e2010-12-03 00:55:40 +0000127 const MCSection *DwarfLineSection) {
Kevin Enderbyc0957932010-09-30 16:52:03 +0000128 unsigned FileNum = 1;
129 unsigned LastLine = 1;
130 unsigned Column = 0;
131 unsigned Flags = DWARF2_LINE_DEFAULT_IS_STMT ? DWARF2_FLAG_IS_STMT : 0;
132 unsigned Isa = 0;
Kevin Enderbyc0957932010-09-30 16:52:03 +0000133 MCSymbol *LastLabel = NULL;
Kevin Enderbyc0957932010-09-30 16:52:03 +0000134
135 // Loop through each MCLineEntry and encode the dwarf line number table.
Rafael Espindola17fd7bd2010-11-19 07:41:23 +0000136 for (MCLineSection::const_iterator
Kevin Enderbyc0957932010-09-30 16:52:03 +0000137 it = LineSection->getMCLineEntries()->begin(),
138 ie = LineSection->getMCLineEntries()->end(); it != ie; ++it) {
139
140 if (FileNum != it->getFileNum()) {
141 FileNum = it->getFileNum();
142 MCOS->EmitIntValue(dwarf::DW_LNS_set_file, 1);
Rafael Espindola3ff57092010-11-02 17:22:24 +0000143 MCOS->EmitULEB128IntValue(FileNum);
Kevin Enderbyc0957932010-09-30 16:52:03 +0000144 }
145 if (Column != it->getColumn()) {
146 Column = it->getColumn();
147 MCOS->EmitIntValue(dwarf::DW_LNS_set_column, 1);
Rafael Espindola3ff57092010-11-02 17:22:24 +0000148 MCOS->EmitULEB128IntValue(Column);
Kevin Enderbyc0957932010-09-30 16:52:03 +0000149 }
150 if (Isa != it->getIsa()) {
151 Isa = it->getIsa();
152 MCOS->EmitIntValue(dwarf::DW_LNS_set_isa, 1);
Rafael Espindola3ff57092010-11-02 17:22:24 +0000153 MCOS->EmitULEB128IntValue(Isa);
Kevin Enderbyc0957932010-09-30 16:52:03 +0000154 }
155 if ((it->getFlags() ^ Flags) & DWARF2_FLAG_IS_STMT) {
156 Flags = it->getFlags();
157 MCOS->EmitIntValue(dwarf::DW_LNS_negate_stmt, 1);
158 }
159 if (it->getFlags() & DWARF2_FLAG_BASIC_BLOCK)
160 MCOS->EmitIntValue(dwarf::DW_LNS_set_basic_block, 1);
161 if (it->getFlags() & DWARF2_FLAG_PROLOGUE_END)
162 MCOS->EmitIntValue(dwarf::DW_LNS_set_prologue_end, 1);
163 if (it->getFlags() & DWARF2_FLAG_EPILOGUE_BEGIN)
164 MCOS->EmitIntValue(dwarf::DW_LNS_set_epilogue_begin, 1);
165
Rafael Espindola64185cc2010-11-13 01:06:27 +0000166 int64_t LineDelta = static_cast<int64_t>(it->getLine()) - LastLine;
Kevin Enderbyc0957932010-09-30 16:52:03 +0000167 MCSymbol *Label = it->getLabel();
168
169 // At this point we want to emit/create the sequence to encode the delta in
170 // line numbers and the increment of the address from the previous Label
171 // and the current Label.
Rafael Espindola32a006e2010-12-03 00:55:40 +0000172 MCOS->EmitDwarfAdvanceLineAddr(LineDelta, LastLabel, Label);
Kevin Enderbyc0957932010-09-30 16:52:03 +0000173
174 LastLine = it->getLine();
175 LastLabel = Label;
Kevin Enderbyc0957932010-09-30 16:52:03 +0000176 }
177
178 // Emit a DW_LNE_end_sequence for the end of the section.
179 // Using the pointer Section create a temporary label at the end of the
180 // section and use that and the LastLabel to compute the address delta
181 // and use INT64_MAX as the line delta which is the signal that this is
182 // actually a DW_LNE_end_sequence.
183
184 // Switch to the section to be able to create a symbol at its end.
185 MCOS->SwitchSection(Section);
186 // Create a symbol at the end of the section.
187 MCSymbol *SectionEnd = MCOS->getContext().CreateTempSymbol();
188 // Set the value of the symbol, as we are at the end of the section.
189 MCOS->EmitLabel(SectionEnd);
190
191 // Switch back the the dwarf line section.
192 MCOS->SwitchSection(DwarfLineSection);
Rafael Espindola195a0ce2010-11-19 02:26:16 +0000193
Rafael Espindola32a006e2010-12-03 00:55:40 +0000194 MCOS->EmitDwarfAdvanceLineAddr(INT64_MAX, LastLabel, SectionEnd);
Kevin Enderbyc0957932010-09-30 16:52:03 +0000195}
196
197//
198// This emits the Dwarf file and the line tables.
199//
Rafael Espindola195a0ce2010-11-19 02:26:16 +0000200void MCDwarfFileTable::Emit(MCStreamer *MCOS,
201 const MCSection *DwarfLineSection,
Devang Patel5113cdb2010-12-03 00:10:48 +0000202 const MCSection *TextSection) {
Kevin Enderbyc0957932010-09-30 16:52:03 +0000203 // Switch to the section where the table will be emitted into.
204 MCOS->SwitchSection(DwarfLineSection);
205
206 // Create a symbol at the beginning of this section.
207 MCSymbol *LineStartSym = MCOS->getContext().CreateTempSymbol();
208 // Set the value of the symbol, as we are at the start of the section.
209 MCOS->EmitLabel(LineStartSym);
210
211 // Create a symbol for the end of the section (to be set when we get there).
212 MCSymbol *LineEndSym = MCOS->getContext().CreateTempSymbol();
213
214 // The first 4 bytes is the total length of the information for this
215 // compilation unit (not including these 4 bytes for the length).
216 MCOS->EmitValue(MakeStartMinusEndExpr(MCOS, LineStartSym, LineEndSym, 4),
Devang Patelee4854f2010-12-02 21:32:30 +0000217 4, 0, true /*UseSet*/);
Kevin Enderbyc0957932010-09-30 16:52:03 +0000218
219 // Next 2 bytes is the Version, which is Dwarf 2.
220 MCOS->EmitIntValue(2, 2);
221
222 // Create a symbol for the end of the prologue (to be set when we get there).
223 MCSymbol *ProEndSym = MCOS->getContext().CreateTempSymbol(); // Lprologue_end
224
225 // Length of the prologue, is the next 4 bytes. Which is the start of the
226 // section to the end of the prologue. Not including the 4 bytes for the
227 // total length, the 2 bytes for the version, and these 4 bytes for the
228 // length of the prologue.
229 MCOS->EmitValue(MakeStartMinusEndExpr(MCOS, LineStartSym, ProEndSym,
230 (4 + 2 + 4)),
Devang Patelee4854f2010-12-02 21:32:30 +0000231 4, 0, true /*UseSet*/);
Kevin Enderbyc0957932010-09-30 16:52:03 +0000232
233 // Parameters of the state machine, are next.
234 MCOS->EmitIntValue(DWARF2_LINE_MIN_INSN_LENGTH, 1);
235 MCOS->EmitIntValue(DWARF2_LINE_DEFAULT_IS_STMT, 1);
236 MCOS->EmitIntValue(DWARF2_LINE_BASE, 1);
237 MCOS->EmitIntValue(DWARF2_LINE_RANGE, 1);
238 MCOS->EmitIntValue(DWARF2_LINE_OPCODE_BASE, 1);
239
240 // Standard opcode lengths
241 MCOS->EmitIntValue(0, 1); // length of DW_LNS_copy
242 MCOS->EmitIntValue(1, 1); // length of DW_LNS_advance_pc
243 MCOS->EmitIntValue(1, 1); // length of DW_LNS_advance_line
244 MCOS->EmitIntValue(1, 1); // length of DW_LNS_set_file
245 MCOS->EmitIntValue(1, 1); // length of DW_LNS_set_column
246 MCOS->EmitIntValue(0, 1); // length of DW_LNS_negate_stmt
247 MCOS->EmitIntValue(0, 1); // length of DW_LNS_set_basic_block
248 MCOS->EmitIntValue(0, 1); // length of DW_LNS_const_add_pc
249 MCOS->EmitIntValue(1, 1); // length of DW_LNS_fixed_advance_pc
250 MCOS->EmitIntValue(0, 1); // length of DW_LNS_set_prologue_end
251 MCOS->EmitIntValue(0, 1); // length of DW_LNS_set_epilogue_begin
252 MCOS->EmitIntValue(1, 1); // DW_LNS_set_isa
253
254 // Put out the directory and file tables.
255
256 // First the directory table.
257 const std::vector<StringRef> &MCDwarfDirs =
258 MCOS->getContext().getMCDwarfDirs();
259 for (unsigned i = 0; i < MCDwarfDirs.size(); i++) {
260 MCOS->EmitBytes(MCDwarfDirs[i], 0); // the DirectoryName
261 MCOS->EmitBytes(StringRef("\0", 1), 0); // the null term. of the string
262 }
263 MCOS->EmitIntValue(0, 1); // Terminate the directory list
264
265 // Second the file table.
266 const std::vector<MCDwarfFile *> &MCDwarfFiles =
267 MCOS->getContext().getMCDwarfFiles();
268 for (unsigned i = 1; i < MCDwarfFiles.size(); i++) {
269 MCOS->EmitBytes(MCDwarfFiles[i]->getName(), 0); // FileName
270 MCOS->EmitBytes(StringRef("\0", 1), 0); // the null term. of the string
Rafael Espindola3ff57092010-11-02 17:22:24 +0000271 // the Directory num
272 MCOS->EmitULEB128IntValue(MCDwarfFiles[i]->getDirIndex());
Kevin Enderbyc0957932010-09-30 16:52:03 +0000273 MCOS->EmitIntValue(0, 1); // last modification timestamp (always 0)
274 MCOS->EmitIntValue(0, 1); // filesize (always 0)
275 }
276 MCOS->EmitIntValue(0, 1); // Terminate the file list
277
278 // This is the end of the prologue, so set the value of the symbol at the
279 // end of the prologue (that was used in a previous expression).
280 MCOS->EmitLabel(ProEndSym);
281
282 // Put out the line tables.
Rafael Espindola17fd7bd2010-11-19 07:41:23 +0000283 const DenseMap<const MCSection *, MCLineSection *> &MCLineSections =
Kevin Enderbyc0957932010-09-30 16:52:03 +0000284 MCOS->getContext().getMCLineSections();
Rafael Espindola17fd7bd2010-11-19 07:41:23 +0000285 const std::vector<const MCSection *> &MCLineSectionOrder =
286 MCOS->getContext().getMCLineSectionOrder();
287 for (std::vector<const MCSection*>::const_iterator it =
288 MCLineSectionOrder.begin(), ie = MCLineSectionOrder.end(); it != ie;
289 ++it) {
290 const MCSection *Sec = *it;
291 const MCLineSection *Line = MCLineSections.lookup(Sec);
Rafael Espindola32a006e2010-12-03 00:55:40 +0000292 EmitDwarfLineTable(MCOS, Sec, Line, DwarfLineSection);
Kevin Enderbyc0957932010-09-30 16:52:03 +0000293
294 // Now delete the MCLineSections that were created in MCLineEntry::Make()
295 // and used to emit the line table.
Rafael Espindola17fd7bd2010-11-19 07:41:23 +0000296 delete Line;
Kevin Enderbyc0957932010-09-30 16:52:03 +0000297 }
298
Devang Patel5113cdb2010-12-03 00:10:48 +0000299 if (TextSection && MCLineSectionOrder.begin() == MCLineSectionOrder.end()) {
Rafael Espindolaa8de83c2010-12-03 23:36:59 +0000300 // The darwin9 linker has a bug (see PR8715). For for 32-bit architectures
301 // it requires:
302 // total_length >= prologue_length + 10
303 // We are 4 bytes short, since we have total_length = 51 and
304 // prologue_length = 45
Devang Patel5113cdb2010-12-03 00:10:48 +0000305
Rafael Espindolaa8de83c2010-12-03 23:36:59 +0000306 // The regular end_sequence should be sufficient.
307 MCDwarfLineAddr::Emit(MCOS, INT64_MAX, 0);
Devang Patel5113cdb2010-12-03 00:10:48 +0000308 }
309
Kevin Enderbyc0957932010-09-30 16:52:03 +0000310 // This is the end of the section, so set the value of the symbol at the end
311 // of this section (that was used in a previous expression).
312 MCOS->EmitLabel(LineEndSym);
313}
314
315/// Utility function to compute the size of the encoding.
316uint64_t MCDwarfLineAddr::ComputeSize(int64_t LineDelta, uint64_t AddrDelta) {
317 SmallString<256> Tmp;
318 raw_svector_ostream OS(Tmp);
319 MCDwarfLineAddr::Encode(LineDelta, AddrDelta, OS);
320 return OS.GetNumBytesInBuffer();
321}
322
323/// Utility function to write the encoding to an object writer.
324void MCDwarfLineAddr::Write(MCObjectWriter *OW, int64_t LineDelta,
325 uint64_t AddrDelta) {
326 SmallString<256> Tmp;
327 raw_svector_ostream OS(Tmp);
328 MCDwarfLineAddr::Encode(LineDelta, AddrDelta, OS);
329 OW->WriteBytes(OS.str());
330}
331
332/// Utility function to emit the encoding to a streamer.
Rafael Espindola195a0ce2010-11-19 02:26:16 +0000333void MCDwarfLineAddr::Emit(MCStreamer *MCOS, int64_t LineDelta,
Kevin Enderbyc0957932010-09-30 16:52:03 +0000334 uint64_t AddrDelta) {
335 SmallString<256> Tmp;
336 raw_svector_ostream OS(Tmp);
337 MCDwarfLineAddr::Encode(LineDelta, AddrDelta, OS);
338 MCOS->EmitBytes(OS.str(), /*AddrSpace=*/0);
339}
340
341/// Utility function to encode a Dwarf pair of LineDelta and AddrDeltas.
342void MCDwarfLineAddr::Encode(int64_t LineDelta, uint64_t AddrDelta,
343 raw_ostream &OS) {
344 uint64_t Temp, Opcode;
345 bool NeedCopy = false;
346
347 // Scale the address delta by the minimum instruction length.
348 AddrDelta = ScaleAddrDelta(AddrDelta);
349
350 // A LineDelta of INT64_MAX is a signal that this is actually a
351 // DW_LNE_end_sequence. We cannot use special opcodes here, since we want the
352 // end_sequence to emit the matrix entry.
353 if (LineDelta == INT64_MAX) {
354 if (AddrDelta == MAX_SPECIAL_ADDR_DELTA)
355 OS << char(dwarf::DW_LNS_const_add_pc);
356 else {
357 OS << char(dwarf::DW_LNS_advance_pc);
358 SmallString<32> Tmp;
359 raw_svector_ostream OSE(Tmp);
360 MCObjectWriter::EncodeULEB128(AddrDelta, OSE);
361 OS << OSE.str();
362 }
363 OS << char(dwarf::DW_LNS_extended_op);
364 OS << char(1);
365 OS << char(dwarf::DW_LNE_end_sequence);
366 return;
367 }
368
369 // Bias the line delta by the base.
370 Temp = LineDelta - DWARF2_LINE_BASE;
371
372 // If the line increment is out of range of a special opcode, we must encode
373 // it with DW_LNS_advance_line.
374 if (Temp >= DWARF2_LINE_RANGE) {
375 OS << char(dwarf::DW_LNS_advance_line);
376 SmallString<32> Tmp;
377 raw_svector_ostream OSE(Tmp);
378 MCObjectWriter::EncodeSLEB128(LineDelta, OSE);
379 OS << OSE.str();
380
381 LineDelta = 0;
382 Temp = 0 - DWARF2_LINE_BASE;
383 NeedCopy = true;
384 }
385
386 // Use DW_LNS_copy instead of a "line +0, addr +0" special opcode.
387 if (LineDelta == 0 && AddrDelta == 0) {
388 OS << char(dwarf::DW_LNS_copy);
389 return;
390 }
391
392 // Bias the opcode by the special opcode base.
393 Temp += DWARF2_LINE_OPCODE_BASE;
394
395 // Avoid overflow when addr_delta is large.
396 if (AddrDelta < 256 + MAX_SPECIAL_ADDR_DELTA) {
397 // Try using a special opcode.
398 Opcode = Temp + AddrDelta * DWARF2_LINE_RANGE;
399 if (Opcode <= 255) {
400 OS << char(Opcode);
401 return;
402 }
403
404 // Try using DW_LNS_const_add_pc followed by special op.
405 Opcode = Temp + (AddrDelta - MAX_SPECIAL_ADDR_DELTA) * DWARF2_LINE_RANGE;
406 if (Opcode <= 255) {
407 OS << char(dwarf::DW_LNS_const_add_pc);
408 OS << char(Opcode);
409 return;
410 }
411 }
412
413 // Otherwise use DW_LNS_advance_pc.
414 OS << char(dwarf::DW_LNS_advance_pc);
415 SmallString<32> Tmp;
416 raw_svector_ostream OSE(Tmp);
417 MCObjectWriter::EncodeULEB128(AddrDelta, OSE);
418 OS << OSE.str();
419
420 if (NeedCopy)
421 OS << char(dwarf::DW_LNS_copy);
422 else
423 OS << char(Temp);
424}
425
Kevin Enderby7cbf73a2010-07-28 20:55:35 +0000426void MCDwarfFile::print(raw_ostream &OS) const {
427 OS << '"' << getName() << '"';
428}
429
430void MCDwarfFile::dump() const {
431 print(dbgs());
432}
Kevin Enderbyc0957932010-09-30 16:52:03 +0000433