20 using namespace llvm::pdb;
25 StringDataBytes += Name.
size() + 1;
30 auto Result = llvm::make_unique<NameMap>();
31 Result->Mapping = Map;
32 return std::move(Result);
39 TotalLength += StringDataBytes;
62 NumBytes +=
B->getKeyLength() + 1;
104 OffsetSoFar +=
B->getKeyLength() + 1;
Error writeZeroString(StringRef Str)
Tagged union holding either a T or a Error.
static GCRegistry::Add< OcamlGC > B("ocaml","ocaml 3.10-compatible GC")
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE size_t size() const
size - Get the string size.
static GCRegistry::Add< CoreCLRGC > E("coreclr","CoreCLR-compatible GC")
Error writeInteger(uint8_t Int)
static ErrorSuccess success()
Create a success value.
Expected< std::unique_ptr< NameMap > > build()
bool insert(MapEntryTy *KeyValue)
insert - Insert the specified key/value pair into the map.
detail::packed_endian_specific_integral< uint32_t, little, unaligned > ulittle32_t
Error commit(msf::StreamWriter &Writer) const
Lightweight error class with error context and mandatory checking.
StringRef - Represent a constant reference to a string, i.e.
void addMapping(StringRef Name, uint32_t Mapping)
uint32_t calculateSerializedLength() const