1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test
Zachary Turner 1e52ce2b64 [CodeView] Emit the correct TypeIndex for std::nullptr_t.
The TypeIndex used by cl.exe is 0x103, which indicates a SimpleTypeMode
of NearPointer (note the absence of the bitness, normally pointers use a
mode of NearPointer32 or NearPointer64) and a SimpleTypeKind of void.
So this is basically a void*, but without a specified size, which makes
sense given how std::nullptr_t is defined.

clang-cl was actually not emitting *anything* for this. Instead, when we
encountered std::nullptr_t in a DIType, we would actually just emit a
TypeIndex of 0, which is obviously wrong.

std::nullptr_t in DWARF is represented as a DW_TAG_unspecified_type with
a name of "decltype(nullptr)", so we add that logic along with a test,
as well as an update to the dumping code so that we no longer print
void* when dumping 0x103 (which would previously treat Void/NearPointer
no differently than Void/NearPointer64).

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

llvm-svn: 345811
2018-11-01 04:02:41 +00:00
..
Analysis [TTI] Fix uses of SK_ExtractSubvector shuffle costs (PR39368) 2018-10-30 18:10:02 +00:00
Assembler
Bindings
Bitcode
BugPoint
CodeGen [PowerPC] Support constraint 'wi' in asm 2018-11-01 02:35:17 +00:00
DebugInfo [CodeView] Emit the correct TypeIndex for std::nullptr_t. 2018-11-01 04:02:41 +00:00
Demangle
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation [MSan] another take at instrumenting inline assembly - now with calls 2018-10-31 09:32:47 +00:00
Integer
JitListener
Linker
LTO
MC [AMDGPU] support image load/store a16 2018-10-31 10:34:48 +00:00
Object Revert r345542: AMDGPU: Enable code object v3 by default 2018-10-30 22:02:40 +00:00
ObjectYAML
Other
SafepointIRVerifier
SymbolRewriter
TableGen
ThinLTO/X86 [X86] Re-enable the machine verifier after fixing more tests 2018-10-30 12:20:17 +00:00
tools [llvm-objdump] Add --reloc alias for -r (PR39407) 2018-10-31 09:34:08 +00:00
Transforms revert rL345717 : [InstSimplify] fold icmp based on range of abs/nabs 2018-10-31 21:37:40 +00:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg.py
lit.site.cfg.py.in
TestRunner.sh