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