9 #ifndef LLVM_CODEGEN_NONRELOCATABLESTRINGPOOL_H 10 #define LLVM_CODEGEN_NONRELOCATABLESTRINGPOOL_H 32 bool PutEmptyString =
false)
33 : Translator(Translator) {
52 uint64_t
getSize() {
return CurrentEndOffset; }
61 unsigned NumEntries = 0;
63 std::function<StringRef(StringRef Input)> Translator;
67 template <
typename T,
typename S>
class StrongType :
public T {
69 template <
typename...
Args>
83 #endif // LLVM_CODEGEN_NONRELOCATABLESTRINGPOOL_H DwarfStringPoolEntryRef getEntry(StringRef S)
It's very easy to introduce bugs by passing the wrong string pool.
This class represents lattice values for constants.
This file defines the MallocAllocator and BumpPtrAllocator interfaces.
Helper for making strong types.
std::vector< DwarfStringPoolEntryRef > getEntriesForEmission() const
Return the list of strings to be emitted.
unsigned getOffset() const
String pool entry reference.
uint32_t getStringOffset(StringRef S)
Get the offset of string S in the string table.
StringRef internString(StringRef S)
Get permanent storage for S (but do not necessarily emit S in the output section).
NonRelocatableStringpool(std::function< StringRef(StringRef Input)> Translator=nullptr, bool PutEmptyString=false)
A string table that doesn't need relocations.
print Print MemDeps of function
StringRef - Represent a constant reference to a string, i.e.
constexpr char Args[]
Key for Kernel::Metadata::mArgs.