llvm-project/llvm/test
Nico Weber ce67a41741 llvm-undname: Fix hex escapes in wchar_t, char16_t, char32_t strings
llvm-undname used to put '\x' in front of every pair of nibbles, but
u"\xD7\xFF" produces a string with 6 bytes: \xD7 \0 \xFF \0 (and \0\0). Correct
for a single character (plus terminating \0) is u\xD7FF instead.
Now, wchar_t, char16_t, and char32_t strings roundtrip from source to
clang-cl (and cl.exe) and then llvm-undname.

(...at least as long as it's not a string like L"\xD7FF" L"foo" which
gets demangled as L"\xD7FFfoo", where the compiler then considers the
"f" as part of the hex escape. That seems ok.)

Also add a comment saying that the "almost-valid" char32_t string I
added in my last commit is actually produced by compilers.

llvm-svn: 358857
2019-04-21 17:19:27 +00:00
..
Analysis [ARM] Rewrite isLegalT2AddressImmediate 2019-04-21 09:54:29 +00:00
Assembler Add LLVM IR debug info support for Fortran COMMON blocks 2019-04-08 19:13:55 +00:00
Bindings
Bitcode [ThinLTO] Fix ThinLTOCodegenerator to export llvm.used symbols 2019-04-17 17:38:09 +00:00
BugPoint
CodeGen [AArch64] add tests with multiple binop+splat vals; NFC 2019-04-21 15:01:19 +00:00
DebugInfo [GVN+LICM] Use line 0 locations for better crash attribution 2019-04-19 22:36:40 +00:00
Demangle llvm-undname: Fix hex escapes in wchar_t, char16_t, char32_t strings 2019-04-21 17:19:27 +00:00
Examples
ExecutionEngine [JITLink] Disable MachO/x86-64 regression test if the X86 target is not built. 2019-04-20 21:32:49 +00:00
Feature
FileCheck
Instrumentation Asan use-after-scope: don't poison allocas if there were untraced lifetime intrinsics in the function (PR41481) 2019-04-16 07:54:20 +00:00
Integer
JitListener
LTO Revert [ThinLTO] Fix ThinLTOCodegenerator to export llvm.used symbols 2019-04-08 18:53:21 +00:00
Linker
MC [llvm] Prevent duplicate files in debug line header in dwarf 5: another attempt 2019-04-19 02:26:56 +00:00
MachineVerifier [X86] Merge the different Jcc instructions for each condition code into single instructions that store the condition code as an operand. 2019-04-05 19:28:09 +00:00
Object [WebAssembly] Object: Improve error messages on invalid section 2019-04-20 00:11:46 +00:00
ObjectYAML [WebAssembly] Target features section 2019-03-20 20:26:45 +00:00
Other [PGO] Profile guided code size optimization. 2019-04-15 16:49:00 +00:00
SafepointIRVerifier
Support [CommandLineParser] Add DefaultOption flag 2019-04-15 17:18:10 +00:00
SymbolRewriter
TableGen [TableGen] Include schedule model name in diagnostic. 2019-04-15 10:06:26 +00:00
ThinLTO/X86 [ThinLTO] Fix ThinLTOCodegenerator to export llvm.used symbols 2019-04-17 17:38:09 +00:00
Transforms [CorrelatedValuePropagation] Mark subs that we know not to wrap with nuw/nsw. 2019-04-20 13:14:18 +00:00
Unit
Verifier [SystemZ] Add missing intrinsics to intrinsics-immarg.ll 2019-04-16 14:35:18 +00:00
YAMLParser
tools Change \r\n -> \n for llvm-symbolizer/help.test after rL358749 2019-04-19 12:28:36 +00:00
.clang-format
CMakeLists.txt [llvm-symbolizer] Add llvm-addr2line 2019-04-19 10:17:52 +00:00
TestRunner.sh
lit.cfg.py [JITLink] Add llvm-jitlink to the list of available tools in lit. 2019-04-20 20:05:30 +00:00
lit.site.cfg.py.in