25 size_t Pos = (size_t)OS.
tell();
27 "header line exceeds max limit");
30 for (
size_t i = (
size_t)OS.
tell() - Pos; i < e; ++i)
36 printLine(OS,
"/*===- TableGen'erated file ",
'-',
"*- C++ -*-===*\\");
43 size_t PSLen = Suffix.
size() + Prefix.
size();
49 }
while(Pos < Desc.
size());
51 printLine(OS, Prefix +
" Automatically generated file, do not edit!",
' ',
size_t size() const
size - Get the string size.
const size_t MAX_LINE_LEN
std::string str() const
str - Return the twine contents as a std::string.
uint64_t tell() const
tell - Return the current offset with the file.
void emitSourceFileHeader(StringRef Desc, raw_ostream &OS)
static void printLine(raw_ostream &OS, const Twine &Prefix, char Fill, StringRef Suffix)
StringRef slice(size_t Start, size_t End) const