9 #ifndef LLVM_DEBUGINFO_GSYM_GSYMCREATOR_H 10 #define LLVM_DEBUGINFO_GSYM_GSYMCREATOR_H 135 mutable std::recursive_mutex
Mutex;
136 std::vector<FunctionInfo> Funcs;
139 std::vector<llvm::gsym::FileEntry> Files;
140 std::vector<uint8_t>
UUID;
141 bool Finalized =
false;
207 UUID.assign(UUIDBytes.
begin(), UUIDBytes.
end());
229 #endif // #ifndef LLVM_DEBUGINFO_GSYM_GSYMCREATOR_H void forEachFunctionInfo(std::function< bool(FunctionInfo &)> const &Callback)
Thread safe iteration over all function infos.
This class represents lattice values for constants.
void setUUID(llvm::ArrayRef< uint8_t > UUIDBytes)
Set the UUID value.
Function information in GSYM files encodes information for one contiguous address range...
uint32_t insertString(StringRef S)
Insert a string into the GSYM string table.
Utility for building string tables with deduplicated suffixes.
llvm::Error finalize(llvm::raw_ostream &OS)
Finalize the data in the GSYM creator prior to saving the data out.
A simplified binary data writer class that doesn't require targets, target definitions, architectures, or require any other optional compile time libraries to be enabled via the build process.
llvm::Error encode(FileWriter &O) const
Encode a GSYM into the file writer stream at the current position.
llvm::Error save(StringRef Path, llvm::support::endianness ByteOrder) const
Save a GSYM file to a stand alone file.
std::pair< llvm::MachO::Target, std::string > UUID
void addFunctionInfo(FunctionInfo &&FI)
Add a function info to this GSYM creator.
GsymCreator is used to emit GSYM data to a stand alone file or section within a file.
uint32_t insertFile(StringRef Path, sys::path::Style Style=sys::path::Style::native)
Insert a file into this GSYM creator.
Lightweight error class with error context and mandatory checking.
This class implements an extremely fast bulk output stream that can only output to a stream...
print Print MemDeps of function
StringRef - Represent a constant reference to a string, i.e.