[codeview] Use character types for all byte-sized integer types
authorReid Kleckner <rnk@google.com>
Thu, 29 Sep 2016 17:55:01 +0000 (17:55 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 29 Sep 2016 17:55:01 +0000 (17:55 +0000)
commite45b2c7d8e76c3e51c47ca272b00e4257d8fd672
tree02333279554f858b2df254f81e7df6e94dac9f94
parentccc2927b692af7682eba650c53e2f2f318ca1c6e
[codeview] Use character types for all byte-sized integer types

The VS debugger doesn't appear to understand the 0x68 or 0x69 type
indices, which were probably intended for use on a platform where a C
'int' is 8 bits. So, use the character types instead. Clang was already
using the character types because '[u]int8_t' is usually defined in
terms of 'char'.

See the Rust issue for screenshots of what VS does:
https://github.com/rust-lang/rust/issues/36646

Fixes PR30552

llvm-svn: 282739
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
llvm/test/DebugInfo/COFF/int8-char-type.ll [new file with mode: 0644]