MCPcopy Create free account
hub / github.com/NVIDIA/cuda-tile / readAndGetString

Method readAndGetString

lib/Bytecode/Reader/BytecodeReader.cpp:237–242  ·  view source on GitHub ↗

Reads a string index and returns the corresponding StringRef.

Source from the content-addressed store, hash-verified

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;

Callers 4

parseDIFileMethod · 0.80
parseDILocMethod · 0.80
parseDISubprogramMethod · 0.80
parseOpAttributeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected