Reads a string index and returns the corresponding StringRef.
| 235 | |
| 236 | /// Reads a string index and returns the corresponding StringRef. |
| 237 | LogicalResult readAndGetString(StringRef &result) { |
| 238 | uint64_t stringIndex; |
| 239 | if (failed(readVarInt(stringIndex))) |
| 240 | return failure(); |
| 241 | return getString(stringIndex, result, context); |
| 242 | } |
| 243 | |
| 244 | void setStringTable(StringRef data, ArrayRef<uint32_t> offsets) { |
| 245 | stringData = data; |
no outgoing calls
no test coverage detected