Lines Matching +full:sw +full:- +full:exception

1 //===--- ELFAttributeParser.cpp - ELF Attribute Parser --------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
42 if (sw) { in integerAttribute()
43 DictScope scope(*sw, "Attribute"); in integerAttribute()
44 sw->printNumber("Tag", tag); in integerAttribute()
46 sw->printString("TagName", tagName); in integerAttribute()
47 sw->printNumber("Value", value); in integerAttribute()
58 if (sw) { in stringAttribute()
59 DictScope scope(*sw, "Attribute"); in stringAttribute()
60 sw->printNumber("Tag", tag); in stringAttribute()
62 sw->printString("TagName", tagName); in stringAttribute()
63 sw->printString("Value", desc); in stringAttribute()
72 if (sw) { in printAttribute()
75 DictScope as(*sw, "Attribute"); in printAttribute()
76 sw->printNumber("Tag", tag); in printAttribute()
77 sw->printNumber("Value", value); in printAttribute()
79 sw->printString("TagName", tagName); in printAttribute()
81 sw->printString("Description", valueDesc); in printAttribute()
123 uint64_t end = cursor.tell() - sizeof(length) + length; in parseSubsection()
125 if (sw) { in parseSubsection()
126 sw->printNumber("SectionLength", length); in parseSubsection()
127 sw->printString("Vendor", vendorName); in parseSubsection()
130 // Handle a subsection with an unrecognized vendor-name by skipping in parseSubsection()
140 /// Tag_File | Tag_Section | Tag_Symbol uleb128:byte-size in parseSubsection()
146 if (sw) { in parseSubsection()
147 sw->printEnum("Tag", tag, ArrayRef(tagNames)); in parseSubsection()
148 sw->printNumber("Size", size); in parseSubsection()
154 Twine::utohexstr(cursor.tell() - 5)); in parseSubsection()
176 Twine::utohexstr(cursor.tell() - 5)); in parseSubsection()
179 if (sw) { in parseSubsection()
180 DictScope scope(*sw, scopeName); in parseSubsection()
182 sw->printList(indexName, indices); in parseSubsection()
183 if (Error e = parseAttributeList(size - 5)) in parseSubsection()
185 } else if (Error e = parseAttributeList(size - 5)) in parseSubsection()
203 // Unrecognized format-version. in parse()
207 "unrecognized format-version: 0x" + in parse()
215 if (sw) { in parse()
216 sw->startLine() << "Section " << ++sectionNumber << " {\n"; in parse()
217 sw->indent(); in parse()
220 if (sectionLength < 4 || cursor.tell() - 4 + sectionLength > section.size()) in parse()
224 utohexstr(cursor.tell() - 4)); in parse()
228 if (sw) { in parse()
229 sw->unindent(); in parse()
230 sw->startLine() << "}\n"; in parse()