22 "Illegal section name encoding for value");
24 static const char Alphabet[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
25 "abcdefghijklmnopqrstuvwxyz"
31 char *
Ptr = Buffer + 7;
32 for (
unsigned i = 0; i < 6; ++i) {
33 unsigned Rem = Value % 64;
35 *(
Ptr--) = Alphabet[Rem];
45 std::memcpy(Out, Buffer.
data(), Buffer.
size());
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This file defines the SmallVector class.
pointer data()
Return a pointer to the vector's buffer, even if empty().
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Twine concat(const Twine &Suffix) const
void toVector(SmallVectorImpl< char > &Out) const
Append the concatenated string into the given SmallString or SmallVector.
bool encodeSectionName(char *Out, uint64_t Offset)
Encode section name based on string table offset.