| 244 | namespace { |
| 245 | struct StringManager { |
| 246 | uint64_t getStringIndex(StringRef str) { |
| 247 | auto it = stringIndexMap.find(str); |
| 248 | if (it != stringIndexMap.end()) |
| 249 | return it->second; |
| 250 | uint64_t index = stringIndexMap.size(); |
| 251 | stringIndexMap[str] = index; |
| 252 | return index; |
| 253 | } |
| 254 | |
| 255 | LogicalResult writeStringSection(raw_ostream &stream) { |
| 256 | SmallVector<char> buffer; |
no test coverage detected