]> git.lizzy.rs Git - rust.git/commit
debuginfo: Define int/float types in terms of MSVC-recognized types.
authorMaulingMonkey <git@maulingmonkey.com>
Thu, 25 Jun 2020 06:28:00 +0000 (23:28 -0700)
committerMaulingMonkey <git@maulingmonkey.com>
Thu, 25 Jun 2020 06:28:00 +0000 (23:28 -0700)
commit24a728a8eb4832568509eb757c2374934a76cb98
tree7776184d1e6de400172fce433da3d0bdcd8ee231
parentf8eb81ba4e85b02d90cfc33fcba0a6a7d5cbf810
debuginfo:  Define int/float types in terms of MSVC-recognized types.

PDB debug information doesn't appear to be emitted for basic types.
By defining u32 as a typedef for unsigned __int32 when targeting MSVC,
we allow CDB and other debuggers to recognize "u32" as a type/expression.

This in turn unblocks rust-lang#70052 "Update hashbrown to 0.8.0" by
allowing $T1 ..= $T3 to resolve, which would otherwise fail to resolve
when builtin types fail to parse.
src/librustc_codegen_llvm/debuginfo/metadata.rs
src/librustc_codegen_llvm/llvm/ffi.rs
src/rustllvm/RustWrapper.cpp