diff options
author | Roman Divacky <rdivacky@FreeBSD.org> | 2009-10-23 14:19:52 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@FreeBSD.org> | 2009-10-23 14:19:52 +0000 |
commit | 4a142eb28942073eb27a112b5ca1cca3f01beb9c (patch) | |
tree | 22cc59e4b240d84c3a5a60531119c4eca914a256 /include/llvm/Support/raw_ostream.h | |
parent | 5cd822fa9bbb9622241e3bf4d7674ed49ccde5b9 (diff) | |
download | src-4a142eb28942073eb27a112b5ca1cca3f01beb9c.tar.gz src-4a142eb28942073eb27a112b5ca1cca3f01beb9c.zip |
Update LLVM to r84949.vendor/llvm/llvm-r84949
Notes
Notes:
svn path=/vendor/llvm/dist/; revision=198396
svn path=/vendor/llvm/llvm-r84949/; revision=198397; tag=vendor/llvm/llvm-r84949
Diffstat (limited to 'include/llvm/Support/raw_ostream.h')
-rw-r--r-- | include/llvm/Support/raw_ostream.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h index 8012b6fdfc08..e67ff85a7927 100644 --- a/include/llvm/Support/raw_ostream.h +++ b/include/llvm/Support/raw_ostream.h @@ -216,6 +216,10 @@ public: /// write_hex - Output \arg N in hexadecimal, without any prefix or padding. raw_ostream &write_hex(unsigned long long N); + /// write_escaped - Output \arg Str, turning '\\', '\t', '\n', '"', and + /// anything that doesn't satisfy std::isprint into an escape sequence. + raw_ostream &write_escaped(StringRef Str); + raw_ostream &write(unsigned char C); raw_ostream &write(const char *Ptr, size_t Size); |