diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2018-04-17 14:00:06 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2018-04-17 14:00:06 +0000 |
commit | fe93546b11ddcb8e079624c32146b1904be775c6 (patch) | |
tree | ca7f49251de9eda305d8f6936b1c9284bccad683 /clang/lib | |
parent | 1764e1beb1c0b7467fe56a875bc1133bfe6beb9e (diff) | |
download | bcm5719-llvm-fe93546b11ddcb8e079624c32146b1904be775c6.tar.gz bcm5719-llvm-fe93546b11ddcb8e079624c32146b1904be775c6.zip |
Add modifiers for unsigned char and signed char field printing for __builtin_dump_struct.
Patch by Paul Semel.
llvm-svn: 330188
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CodeGen/CGBuiltin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index c08478c97ca..dd245dd5590 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -949,6 +949,8 @@ static llvm::Value *dumpRecord(CodeGenFunction &CGF, QualType RType, if (Types.empty()) { Types[Context.CharTy] = "%c"; Types[Context.BoolTy] = "%d"; + Types[Context.SignedCharTy] = "%hhd"; + Types[Context.UnsignedCharTy] = "%hhu"; Types[Context.IntTy] = "%d"; Types[Context.UnsignedIntTy] = "%u"; Types[Context.LongTy] = "%ld"; |