di-compile-unit =: DebugTag[DICompileUnit] diFileIndex[varint] - DIFileAttr
| 912 | // DebugTag[DICompileUnit] |
| 913 | // diFileIndex[varint] - DIFileAttr |
| 914 | LogicalResult parseDICompileUnit(EncodingReader &reader, |
| 915 | Attribute &diCompileUnit) { |
| 916 | auto file = readAndGetDebugInfo<DIFileAttr>(reader); |
| 917 | if (!file) |
| 918 | return reader.emitError() |
| 919 | << "failed to read file attribute when parsing DICompileUnitAttr"; |
| 920 | |
| 921 | diCompileUnit = DICompileUnitAttr::get(&context, file); |
| 922 | return success(); |
| 923 | } |
| 924 | |
| 925 | // di-file =: |
| 926 | // DebugTag[DIFile] |