1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/tools
Francis Visoiu Mistrih 061acf9c7f [YAML] Add support for non-printable characters
LLVM IR function names which disable mangling start with '\01'
(https://www.llvm.org/docs/LangRef.html#identifiers).

When an identifier like "\01@abc@" gets dumped to MIR, it is quoted, but
only with single quotes.

http://www.yaml.org/spec/1.2/spec.html#id2770814:

"The allowed character range explicitly excludes the C0 control block
allowed), the surrogate block #xD800-#xDFFF, #xFFFE, and #xFFFF."

http://www.yaml.org/spec/1.2/spec.html#id2776092:

"All non-printable characters must be escaped.
[...]
Note that escape sequences are only interpreted in double-quoted scalars."

This patch adds support for printing escaped non-printable characters
between double quotes if needed.

Should also fix PR31743.

Differential Revision: https://reviews.llvm.org/D41290

llvm-svn: 320996
2017-12-18 17:38:03 +00:00
..
bugpoint Remove redundant includes from tools. 2017-12-13 21:31:10 +00:00
bugpoint-passes Remove redundant includes from tools. 2017-12-13 21:31:10 +00:00
dsymutil [YAML] Add support for non-printable characters 2017-12-18 17:38:03 +00:00
gold [LLVMgold] Don't set undefined symbol as prevailing 2017-12-15 09:18:21 +00:00
llc Rename CommandFlags.h -> CommandFlags.def 2017-11-27 19:43:58 +00:00
lli Rename CommandFlags.h -> CommandFlags.def 2017-11-27 19:43:58 +00:00
llvm-ar Remove redundant includes from tools. 2017-12-13 21:31:10 +00:00
llvm-as
llvm-as-fuzzer
llvm-bcanalyzer Remove redundant includes from tools. 2017-12-13 21:31:10 +00:00
llvm-c-test Fixed warning 'function declaration isn’t a prototype [-Werror=strict-prototypes]' 2017-12-16 02:54:17 +00:00
llvm-cat
llvm-cfi-verify Remove redundant includes from tools. 2017-12-13 21:31:10 +00:00
llvm-config
llvm-cov Remove redundant includes from tools. 2017-12-13 21:31:10 +00:00
llvm-cvtres [llvm-cvtres] Add support for ARM64 2017-11-10 22:27:41 +00:00
llvm-cxxdump Add llvm::for_each as a range-based extensions to <algorithm> and make use of it in some cases where it is a more clear alternative to std::for_each. 2017-11-03 20:01:25 +00:00
llvm-cxxfilt Add opt-viewer testing 2017-11-29 17:07:41 +00:00
llvm-demangle-fuzzer llvm-demangle-fuzzer: Link in Support 2017-11-17 20:46:55 +00:00
llvm-diff Remove redundant includes from tools. 2017-12-13 21:31:10 +00:00
llvm-dis
llvm-dwarfdump Remove redundant includes from tools. 2017-12-13 21:31:10 +00:00
llvm-dwp Remove redundant includes from tools. 2017-12-13 21:31:10 +00:00
llvm-extract
llvm-go Update some code.google.com links 2017-11-13 23:47:58 +00:00
llvm-isel-fuzzer Remove redundant includes from tools. 2017-12-13 21:31:10 +00:00
llvm-jitlistener
llvm-link
llvm-lto Rename CommandFlags.h -> CommandFlags.def 2017-11-27 19:43:58 +00:00
llvm-lto2 Rename CommandFlags.h -> CommandFlags.def 2017-11-27 19:43:58 +00:00
llvm-mc Remove redundant includes from tools. 2017-12-13 21:31:10 +00:00
llvm-mc-assemble-fuzzer Rename MCTargetOptionsCommandFlags.h to .def as it is not a normal/modular header as much as it is for stamping out some global/static variables 2017-11-27 19:55:16 +00:00
llvm-mc-disassemble-fuzzer
llvm-mcmarkup Remove redundant includes from tools. 2017-12-13 21:31:10 +00:00
llvm-modextract
llvm-mt Don't #include MemoryBuffer.h from Host.h. 2017-11-17 01:00:35 +00:00
llvm-nm Remove redundant includes from tools. 2017-12-13 21:31:10 +00:00
llvm-objcopy [llvm-objcopy] Reformat everything using clang-format -i 2017-12-15 20:17:55 +00:00
llvm-objdump Updated llvm-objdump to display local relocations in Mach-O binaries 2017-12-15 17:57:40 +00:00
llvm-opt-fuzzer Remove redundant includes from tools. 2017-12-13 21:31:10 +00:00
llvm-opt-report
llvm-pdbutil Don't crash in llvm-pdbutil when dumping TypeIndexes with high bit set. 2017-12-15 00:27:49 +00:00
llvm-profdata [llvm-profdata] Don't treat non-fatal merge errors as fatal 2017-11-17 21:18:32 +00:00
llvm-rc llvm-rc/ResourceScriptTokenList.h: Turns this into a .def file to imply that it's non-modular 2017-11-21 00:23:19 +00:00
llvm-readobj Remove redundant includes from tools. 2017-12-13 21:31:10 +00:00
llvm-rtdyld Remove redundant includes from tools. 2017-12-13 21:31:10 +00:00
llvm-shlib
llvm-size Add llvm::for_each as a range-based extensions to <algorithm> and make use of it in some cases where it is a more clear alternative to std::for_each. 2017-11-03 20:01:25 +00:00
llvm-special-case-list-fuzzer
llvm-split
llvm-stress
llvm-strings [llvm-strings] Add support for the -a/--all options 2017-11-14 19:58:36 +00:00
llvm-symbolizer
llvm-xray Remove redundant includes from tools. 2017-12-13 21:31:10 +00:00
lto Rename CommandFlags.h -> CommandFlags.def 2017-11-27 19:43:58 +00:00
msbuild
obj2yaml [WebAssembly] Add support for init functions linking metadata 2017-12-14 21:10:03 +00:00
opt [Debugify] Add a pass to test debug info preservation 2017-12-08 21:57:28 +00:00
opt-viewer [opt-viewer] Render utf-8 characters properly in the generated HTML 2017-12-14 18:55:33 +00:00
sancov Remove redundant includes from tools. 2017-12-13 21:31:10 +00:00
sanstats
verify-uselistorder
xcode-toolchain [llvm] Add stripped installation targets 2017-11-30 21:48:26 +00:00
yaml2obj [WebAssembly] Add support for init functions linking metadata 2017-12-14 21:10:03 +00:00
CMakeLists.txt
LLVMBuild.txt