blob: babfd2ece067e88401cece5e54890904b5a3a4af [file] [log] [blame]
Eric Christopherbd5bc212012-08-23 00:52:51 +00001//===-- DWARFDebugInfoEntry.cpp -------------------------------------------===//
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +00002//
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 "DWARFDebugInfoEntry.h"
11#include "DWARFCompileUnit.h"
12#include "DWARFContext.h"
13#include "DWARFDebugAbbrev.h"
Alexey Samsonovcd614552013-04-17 08:29:02 +000014#include "llvm/DebugInfo/DWARFFormValue.h"
Eric Christopherdd8e9f32013-01-07 19:32:41 +000015#include "llvm/Support/Debug.h"
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +000016#include "llvm/Support/Dwarf.h"
17#include "llvm/Support/Format.h"
18#include "llvm/Support/raw_ostream.h"
19using namespace llvm;
20using namespace dwarf;
21
David Blaikiecd7c4982013-09-23 22:44:40 +000022void DWARFDebugInfoEntryMinimal::dump(raw_ostream &OS, const DWARFUnit *u,
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +000023 unsigned recurseDepth,
24 unsigned indent) const {
David Blaikiecd7c4982013-09-23 22:44:40 +000025 DataExtractor debug_info_data = u->getDebugInfoExtractor();
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +000026 uint32_t offset = Offset;
27
28 if (debug_info_data.isValidOffset(offset)) {
Benjamin Kramer80cc2592011-11-05 15:35:00 +000029 uint32_t abbrCode = debug_info_data.getULEB128(&offset);
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +000030
Benjamin Kramer09422552011-09-14 17:54:56 +000031 OS << format("\n0x%8.8x: ", Offset);
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +000032 if (abbrCode) {
33 if (AbbrevDecl) {
Benjamin Kramer75c63082011-09-15 05:43:00 +000034 const char *tagString = TagString(getTag());
35 if (tagString)
36 OS.indent(indent) << tagString;
37 else
38 OS.indent(indent) << format("DW_TAG_Unknown_%x", getTag());
39 OS << format(" [%u] %c\n", abbrCode,
40 AbbrevDecl->hasChildren() ? '*' : ' ');
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +000041
Eric Christophere5ef3052013-01-07 03:27:58 +000042 // Dump all data in the DIE for the attributes.
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +000043 const uint32_t numAttributes = AbbrevDecl->getNumAttributes();
44 for (uint32_t i = 0; i != numAttributes; ++i) {
45 uint16_t attr = AbbrevDecl->getAttrByIndex(i);
46 uint16_t form = AbbrevDecl->getFormByIndex(i);
David Blaikiecd7c4982013-09-23 22:44:40 +000047 dumpAttribute(OS, u, &offset, attr, form, indent);
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +000048 }
49
50 const DWARFDebugInfoEntryMinimal *child = getFirstChild();
51 if (recurseDepth > 0 && child) {
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +000052 while (child) {
David Blaikiecd7c4982013-09-23 22:44:40 +000053 child->dump(OS, u, recurseDepth-1, indent+2);
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +000054 child = child->getSibling();
55 }
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +000056 }
57 } else {
58 OS << "Abbreviation code not found in 'debug_abbrev' class for code: "
59 << abbrCode << '\n';
60 }
61 } else {
Benjamin Kramer09422552011-09-14 17:54:56 +000062 OS.indent(indent) << "NULL\n";
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +000063 }
64 }
65}
66
67void DWARFDebugInfoEntryMinimal::dumpAttribute(raw_ostream &OS,
David Blaikiecd7c4982013-09-23 22:44:40 +000068 const DWARFUnit *u,
69 uint32_t *offset_ptr,
70 uint16_t attr, uint16_t form,
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +000071 unsigned indent) const {
David Blaikiea9b69792013-08-19 03:36:23 +000072 OS << " ";
Benjamin Kramer75c63082011-09-15 05:43:00 +000073 OS.indent(indent+2);
74 const char *attrString = AttributeString(attr);
75 if (attrString)
76 OS << attrString;
77 else
78 OS << format("DW_AT_Unknown_%x", attr);
79 const char *formString = FormEncodingString(form);
80 if (formString)
81 OS << " [" << formString << ']';
82 else
83 OS << format(" [DW_FORM_Unknown_%x]", form);
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +000084
85 DWARFFormValue formValue(form);
86
David Blaikiecd7c4982013-09-23 22:44:40 +000087 if (!formValue.extractValue(u->getDebugInfoExtractor(), offset_ptr, u))
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +000088 return;
89
90 OS << "\t(";
David Blaikiecd7c4982013-09-23 22:44:40 +000091 formValue.dump(OS, u);
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +000092 OS << ")\n";
93}
94
David Blaikiecd7c4982013-09-23 22:44:40 +000095bool DWARFDebugInfoEntryMinimal::extractFast(const DWARFUnit *U,
Alexey Samsonovd6b89ef2013-04-08 14:37:16 +000096 uint32_t *OffsetPtr) {
97 Offset = *OffsetPtr;
David Blaikiecd7c4982013-09-23 22:44:40 +000098 DataExtractor DebugInfoData = U->getDebugInfoExtractor();
Alexey Samsonov39f62fa2013-10-28 23:58:58 +000099 uint32_t UEndOffset = U->getNextUnitOffset();
100 if (Offset >= UEndOffset || !DebugInfoData.isValidOffset(Offset))
Alexey Samsonovd6b89ef2013-04-08 14:37:16 +0000101 return false;
102 uint64_t AbbrCode = DebugInfoData.getULEB128(OffsetPtr);
103 if (0 == AbbrCode) {
104 // NULL debug tag entry.
105 AbbrevDecl = NULL;
106 return true;
107 }
David Blaikiecd7c4982013-09-23 22:44:40 +0000108 AbbrevDecl = U->getAbbreviations()->getAbbreviationDeclaration(AbbrCode);
Alexey Samsonovd6b89ef2013-04-08 14:37:16 +0000109 if (0 == AbbrevDecl) {
110 // Restore the original offset.
111 *OffsetPtr = Offset;
112 return false;
113 }
Alexey Samsonov39f62fa2013-10-28 23:58:58 +0000114 ArrayRef<uint8_t> FixedFormSizes = DWARFFormValue::getFixedFormSizes(
115 U->getAddressByteSize(), U->getVersion());
116 assert(FixedFormSizes.size() > 0);
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +0000117
Alexey Samsonovd6b89ef2013-04-08 14:37:16 +0000118 // Skip all data in the .debug_info for the attributes
119 for (uint32_t i = 0, n = AbbrevDecl->getNumAttributes(); i < n; ++i) {
Alexey Samsonovd6b89ef2013-04-08 14:37:16 +0000120 uint16_t Form = AbbrevDecl->getFormByIndex(i);
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +0000121
Alexey Samsonov39f62fa2013-10-28 23:58:58 +0000122 uint8_t FixedFormSize =
123 (Form < FixedFormSizes.size()) ? FixedFormSizes[Form] : 0;
124 if (FixedFormSize)
125 *OffsetPtr += FixedFormSize;
126 else if (!DWARFFormValue::skipValue(Form, DebugInfoData, OffsetPtr, U)) {
Alexey Samsonovd6b89ef2013-04-08 14:37:16 +0000127 // Restore the original offset.
128 *OffsetPtr = Offset;
129 return false;
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +0000130 }
131 }
Alexey Samsonovd6b89ef2013-04-08 14:37:16 +0000132 return true;
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +0000133}
134
Alexey Samsonov5eae90d2012-09-04 08:12:33 +0000135bool DWARFDebugInfoEntryMinimal::isSubprogramDIE() const {
136 return getTag() == DW_TAG_subprogram;
137}
138
139bool DWARFDebugInfoEntryMinimal::isSubroutineDIE() const {
140 uint32_t Tag = getTag();
141 return Tag == DW_TAG_subprogram ||
142 Tag == DW_TAG_inlined_subroutine;
143}
144
Alexey Samsonov2e56d572013-10-17 13:28:16 +0000145bool DWARFDebugInfoEntryMinimal::getAttributeValue(
146 const DWARFUnit *U, const uint16_t Attr, DWARFFormValue &FormValue) const {
147 if (!AbbrevDecl)
148 return false;
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +0000149
Alexey Samsonov2e56d572013-10-17 13:28:16 +0000150 uint32_t AttrIdx = AbbrevDecl->findAttributeIndex(Attr);
151 if (AttrIdx == -1U)
152 return false;
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +0000153
Alexey Samsonov2e56d572013-10-17 13:28:16 +0000154 DataExtractor DebugInfoData = U->getDebugInfoExtractor();
155 uint32_t DebugInfoOffset = getOffset();
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +0000156
Alexey Samsonov2e56d572013-10-17 13:28:16 +0000157 // Skip the abbreviation code so we are at the data for the attributes
158 DebugInfoData.getULEB128(&DebugInfoOffset);
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +0000159
Alexey Samsonov2e56d572013-10-17 13:28:16 +0000160 // Skip preceding attribute values.
161 for (uint32_t i = 0; i < AttrIdx; ++i) {
162 DWARFFormValue::skipValue(AbbrevDecl->getFormByIndex(i),
163 DebugInfoData, &DebugInfoOffset, U);
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +0000164 }
165
Alexey Samsonov2e56d572013-10-17 13:28:16 +0000166 FormValue = DWARFFormValue(AbbrevDecl->getFormByIndex(AttrIdx));
167 return FormValue.extractValue(DebugInfoData, &DebugInfoOffset, U);
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +0000168}
169
Alexey Samsonov63fd2af2013-08-27 09:20:22 +0000170const char *DWARFDebugInfoEntryMinimal::getAttributeValueAsString(
David Blaikiecd7c4982013-09-23 22:44:40 +0000171 const DWARFUnit *U, const uint16_t Attr, const char *FailValue) const {
Alexey Samsonov63fd2af2013-08-27 09:20:22 +0000172 DWARFFormValue FormValue;
Alexey Samsonovc5253232013-10-28 23:01:48 +0000173 if (!getAttributeValue(U, Attr, FormValue))
174 return FailValue;
175 Optional<const char *> Result = FormValue.getAsCString(U);
176 return Result.hasValue() ? Result.getValue() : FailValue;
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +0000177}
178
Alexey Samsonov63fd2af2013-08-27 09:20:22 +0000179uint64_t DWARFDebugInfoEntryMinimal::getAttributeValueAsAddress(
David Blaikiecd7c4982013-09-23 22:44:40 +0000180 const DWARFUnit *U, const uint16_t Attr, uint64_t FailValue) const {
Alexey Samsonov63fd2af2013-08-27 09:20:22 +0000181 DWARFFormValue FormValue;
Alexey Samsonovc5253232013-10-28 23:01:48 +0000182 if (!getAttributeValue(U, Attr, FormValue))
183 return FailValue;
184 Optional<uint64_t> Result = FormValue.getAsAddress(U);
185 return Result.hasValue() ? Result.getValue() : FailValue;
Alexey Samsonov63fd2af2013-08-27 09:20:22 +0000186}
187
Alexey Samsonovc5253232013-10-28 23:01:48 +0000188uint64_t DWARFDebugInfoEntryMinimal::getAttributeValueAsUnsignedConstant(
David Blaikiecd7c4982013-09-23 22:44:40 +0000189 const DWARFUnit *U, const uint16_t Attr, uint64_t FailValue) const {
Alexey Samsonov63fd2af2013-08-27 09:20:22 +0000190 DWARFFormValue FormValue;
Alexey Samsonovc5253232013-10-28 23:01:48 +0000191 if (!getAttributeValue(U, Attr, FormValue))
192 return FailValue;
193 Optional<uint64_t> Result = FormValue.getAsUnsignedConstant();
194 return Result.hasValue() ? Result.getValue() : FailValue;
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +0000195}
196
David Blaikiecd7c4982013-09-23 22:44:40 +0000197uint64_t DWARFDebugInfoEntryMinimal::getAttributeValueAsReference(
Alexey Samsonov2e56d572013-10-17 13:28:16 +0000198 const DWARFUnit *U, const uint16_t Attr, uint64_t FailValue) const {
199 DWARFFormValue FormValue;
Alexey Samsonovc5253232013-10-28 23:01:48 +0000200 if (!getAttributeValue(U, Attr, FormValue))
201 return FailValue;
202 Optional<uint64_t> Result = FormValue.getAsReference(U);
203 return Result.hasValue() ? Result.getValue() : FailValue;
204}
205
206uint64_t DWARFDebugInfoEntryMinimal::getAttributeValueAsSectionOffset(
207 const DWARFUnit *U, const uint16_t Attr, uint64_t FailValue) const {
208 DWARFFormValue FormValue;
209 if (!getAttributeValue(U, Attr, FormValue))
210 return FailValue;
211 Optional<uint64_t> Result = FormValue.getAsSectionOffset();
212 return Result.hasValue() ? Result.getValue() : FailValue;
Benjamin Kramer72c0d7f2011-09-13 19:42:23 +0000213}
Benjamin Kramer10df8062011-09-14 20:52:27 +0000214
David Blaikiecd7c4982013-09-23 22:44:40 +0000215bool DWARFDebugInfoEntryMinimal::getLowAndHighPC(const DWARFUnit *U,
Eric Christopher203e6f62012-10-30 21:36:43 +0000216 uint64_t &LowPC,
217 uint64_t &HighPC) const {
David Blaikiecd7c4982013-09-23 22:44:40 +0000218 LowPC = getAttributeValueAsAddress(U, DW_AT_low_pc, -1ULL);
Alexey Samsonovd2d54e22013-10-28 23:15:15 +0000219 if (LowPC == -1ULL)
220 return false;
221 HighPC = getAttributeValueAsAddress(U, DW_AT_high_pc, -1ULL);
222 if (HighPC == -1ULL) {
223 // Since DWARF4, DW_AT_high_pc may also be of class constant, in which case
224 // it represents function size.
225 HighPC = getAttributeValueAsUnsignedConstant(U, DW_AT_high_pc, -1ULL);
226 if (HighPC != -1ULL)
227 HighPC += LowPC;
228 }
Alexey Samsonov5eae90d2012-09-04 08:12:33 +0000229 return (HighPC != -1ULL);
230}
231
David Blaikiecd7c4982013-09-23 22:44:40 +0000232void DWARFDebugInfoEntryMinimal::buildAddressRangeTable(
233 const DWARFUnit *U, DWARFDebugAranges *DebugAranges,
234 uint32_t UOffsetInAranges) const {
Benjamin Kramer10df8062011-09-14 20:52:27 +0000235 if (AbbrevDecl) {
Alexey Samsonov5eae90d2012-09-04 08:12:33 +0000236 if (isSubprogramDIE()) {
237 uint64_t LowPC, HighPC;
David Blaikiecd7c4982013-09-23 22:44:40 +0000238 if (getLowAndHighPC(U, LowPC, HighPC))
239 DebugAranges->appendRange(UOffsetInAranges, LowPC, HighPC);
Alexey Samsonov5eae90d2012-09-04 08:12:33 +0000240 // FIXME: try to append ranges from .debug_ranges section.
Benjamin Kramer10df8062011-09-14 20:52:27 +0000241 }
242
Alexey Samsonov63fd2af2013-08-27 09:20:22 +0000243 const DWARFDebugInfoEntryMinimal *Child = getFirstChild();
244 while (Child) {
David Blaikiecd7c4982013-09-23 22:44:40 +0000245 Child->buildAddressRangeTable(U, DebugAranges, UOffsetInAranges);
Alexey Samsonov63fd2af2013-08-27 09:20:22 +0000246 Child = Child->getSibling();
Benjamin Kramer10df8062011-09-14 20:52:27 +0000247 }
248 }
249}
Alexey Samsonov3e25c4a2012-07-02 05:54:45 +0000250
David Blaikiecd7c4982013-09-23 22:44:40 +0000251bool DWARFDebugInfoEntryMinimal::addressRangeContainsAddress(
252 const DWARFUnit *U, const uint64_t Address) const {
Alexey Samsonov5eae90d2012-09-04 08:12:33 +0000253 if (isNULL())
254 return false;
255 uint64_t LowPC, HighPC;
David Blaikiecd7c4982013-09-23 22:44:40 +0000256 if (getLowAndHighPC(U, LowPC, HighPC))
Alexey Samsonov5eae90d2012-09-04 08:12:33 +0000257 return (LowPC <= Address && Address <= HighPC);
258 // Try to get address ranges from .debug_ranges section.
Alexey Samsonovc5253232013-10-28 23:01:48 +0000259 uint32_t RangesOffset =
260 getAttributeValueAsSectionOffset(U, DW_AT_ranges, -1U);
Alexey Samsonov5eae90d2012-09-04 08:12:33 +0000261 if (RangesOffset != -1U) {
262 DWARFDebugRangeList RangeList;
David Blaikiecd7c4982013-09-23 22:44:40 +0000263 if (U->extractRangeList(RangesOffset, RangeList))
264 return RangeList.containsAddress(U->getBaseAddress(), Address);
Alexey Samsonov3e25c4a2012-07-02 05:54:45 +0000265 }
266 return false;
267}
268
David Blaikiecd7c4982013-09-23 22:44:40 +0000269const char *
270DWARFDebugInfoEntryMinimal::getSubroutineName(const DWARFUnit *U) const {
Alexey Samsonov5eae90d2012-09-04 08:12:33 +0000271 if (!isSubroutineDIE())
Alexey Samsonov3e25c4a2012-07-02 05:54:45 +0000272 return 0;
Alexey Samsonov9d26b0b2012-07-17 15:28:35 +0000273 // Try to get mangled name if possible.
274 if (const char *name =
David Blaikiecd7c4982013-09-23 22:44:40 +0000275 getAttributeValueAsString(U, DW_AT_MIPS_linkage_name, 0))
Alexey Samsonov9d26b0b2012-07-17 15:28:35 +0000276 return name;
David Blaikiecd7c4982013-09-23 22:44:40 +0000277 if (const char *name = getAttributeValueAsString(U, DW_AT_linkage_name, 0))
Alexey Samsonov9d26b0b2012-07-17 15:28:35 +0000278 return name;
David Blaikiecd7c4982013-09-23 22:44:40 +0000279 if (const char *name = getAttributeValueAsString(U, DW_AT_name, 0))
Alexey Samsonov9d26b0b2012-07-17 15:28:35 +0000280 return name;
281 // Try to get name from specification DIE.
282 uint32_t spec_ref =
David Blaikiecd7c4982013-09-23 22:44:40 +0000283 getAttributeValueAsReference(U, DW_AT_specification, -1U);
Alexey Samsonov9d26b0b2012-07-17 15:28:35 +0000284 if (spec_ref != -1U) {
285 DWARFDebugInfoEntryMinimal spec_die;
Alexey Samsonov39f62fa2013-10-28 23:58:58 +0000286 if (spec_die.extractFast(U, &spec_ref)) {
David Blaikiecd7c4982013-09-23 22:44:40 +0000287 if (const char *name = spec_die.getSubroutineName(U))
Alexey Samsonov9d26b0b2012-07-17 15:28:35 +0000288 return name;
Alexey Samsonov3e25c4a2012-07-02 05:54:45 +0000289 }
290 }
Alexey Samsonov9d26b0b2012-07-17 15:28:35 +0000291 // Try to get name from abstract origin DIE.
292 uint32_t abs_origin_ref =
David Blaikiecd7c4982013-09-23 22:44:40 +0000293 getAttributeValueAsReference(U, DW_AT_abstract_origin, -1U);
Alexey Samsonov9d26b0b2012-07-17 15:28:35 +0000294 if (abs_origin_ref != -1U) {
295 DWARFDebugInfoEntryMinimal abs_origin_die;
Alexey Samsonov39f62fa2013-10-28 23:58:58 +0000296 if (abs_origin_die.extractFast(U, &abs_origin_ref)) {
David Blaikiecd7c4982013-09-23 22:44:40 +0000297 if (const char *name = abs_origin_die.getSubroutineName(U))
Alexey Samsonov9d26b0b2012-07-17 15:28:35 +0000298 return name;
299 }
300 }
301 return 0;
Alexey Samsonov3e25c4a2012-07-02 05:54:45 +0000302}
Alexey Samsonov5eae90d2012-09-04 08:12:33 +0000303
David Blaikiecd7c4982013-09-23 22:44:40 +0000304void DWARFDebugInfoEntryMinimal::getCallerFrame(const DWARFUnit *U,
Eric Christopher203e6f62012-10-30 21:36:43 +0000305 uint32_t &CallFile,
306 uint32_t &CallLine,
307 uint32_t &CallColumn) const {
Alexey Samsonovc5253232013-10-28 23:01:48 +0000308 CallFile = getAttributeValueAsUnsignedConstant(U, DW_AT_call_file, 0);
309 CallLine = getAttributeValueAsUnsignedConstant(U, DW_AT_call_line, 0);
310 CallColumn = getAttributeValueAsUnsignedConstant(U, DW_AT_call_column, 0);
Alexey Samsonov5eae90d2012-09-04 08:12:33 +0000311}
312
Alexey Samsonove6642902013-08-06 10:49:15 +0000313DWARFDebugInfoEntryInlinedChain
Alexey Samsonov5eae90d2012-09-04 08:12:33 +0000314DWARFDebugInfoEntryMinimal::getInlinedChainForAddress(
David Blaikiecd7c4982013-09-23 22:44:40 +0000315 const DWARFUnit *U, const uint64_t Address) const {
Alexey Samsonove6642902013-08-06 10:49:15 +0000316 DWARFDebugInfoEntryInlinedChain InlinedChain;
David Blaikiecd7c4982013-09-23 22:44:40 +0000317 InlinedChain.U = U;
Alexey Samsonov5eae90d2012-09-04 08:12:33 +0000318 if (isNULL())
319 return InlinedChain;
320 for (const DWARFDebugInfoEntryMinimal *DIE = this; DIE; ) {
321 // Append current DIE to inlined chain only if it has correct tag
322 // (e.g. it is not a lexical block).
323 if (DIE->isSubroutineDIE()) {
Alexey Samsonove6642902013-08-06 10:49:15 +0000324 InlinedChain.DIEs.push_back(*DIE);
Alexey Samsonov5eae90d2012-09-04 08:12:33 +0000325 }
326 // Try to get child which also contains provided address.
327 const DWARFDebugInfoEntryMinimal *Child = DIE->getFirstChild();
328 while (Child) {
David Blaikiecd7c4982013-09-23 22:44:40 +0000329 if (Child->addressRangeContainsAddress(U, Address)) {
Alexey Samsonov5eae90d2012-09-04 08:12:33 +0000330 // Assume there is only one such child.
331 break;
332 }
333 Child = Child->getSibling();
334 }
335 DIE = Child;
336 }
337 // Reverse the obtained chain to make the root of inlined chain last.
Alexey Samsonove6642902013-08-06 10:49:15 +0000338 std::reverse(InlinedChain.DIEs.begin(), InlinedChain.DIEs.end());
Alexey Samsonov5eae90d2012-09-04 08:12:33 +0000339 return InlinedChain;
340}