12#include "llvm/Config/config.h"
14#include "llvm/Support/VCSRevision.h"
20template <
typename StructT>
22 static_assert(std::is_class<StructT>() &&
23 "This method must be used for writing structure types");
26 OS.
write(
reinterpret_cast<const char *
>(&S),
sizeof(StructT));
48 Parameters.Flags = dxbc::CompilerVersionFlags::Default;
50 Parameters.Flags |= dxbc::CompilerVersionFlags::Debug;
73void CompilerVersion::updateContentSize() {
static void writeString(raw_ostream &OS, StringRef S)
static void writeStruct(raw_ostream &OS, StructT S)
This file defines the SmallString class.
SmallString - A SmallString is just a SmallVector with methods and accessors that make it work better...
pointer data()
Return a pointer to the vector's buffer, even if empty().
Represent a constant reference to a string, i.e.
constexpr size_t size() const
Get the string size.
constexpr const char * data() const
Get a pointer to the start of the string (which may not be null terminated).
This class implements an extremely fast bulk output stream that can only output to a stream.
raw_ostream & write_zeros(unsigned NumZeros)
write_zeros - Insert 'NumZeros' nulls.
raw_ostream & write(unsigned char C)
A raw_ostream that writes to an SmallVector or SmallString.
constexpr bool IsBigEndianHost
This is an optimization pass for GlobalISel generic memory operations.
StringRef CustomVersionString
void setCommitSha(StringRef CommitSha)
void setVersionString(StringRef VersionString)
void write(raw_ostream &OS) const
dxbc::CompilerVersionHeader Parameters
dxbc::DebugNameHeader Parameters
void setFilename(StringRef DebugFilename)
void write(raw_ostream &OS) const