[PATCH] D45615: [builtins] __builtin_dump_struct : added more types format

Paul Semel via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 13 02:53:58 PDT 2018


paulsemel created this revision.
paulsemel added a reviewer: aaron.ballman.
Herald added a subscriber: cfe-commits.

There was missing some basic types format (like uint8_t..). This patch is meant to print them the correct way.


Repository:
  rC Clang

https://reviews.llvm.org/D45615

Files:
  lib/CodeGen/CGBuiltin.cpp


Index: lib/CodeGen/CGBuiltin.cpp
===================================================================
--- lib/CodeGen/CGBuiltin.cpp
+++ lib/CodeGen/CGBuiltin.cpp
@@ -949,6 +949,10 @@
   if (Types.empty()) {
     Types[Context.CharTy] = "%c";
     Types[Context.BoolTy] = "%d";
+    Types[Context.SignedCharTy] = "%d";
+    Types[Context.ShortTy] = "%d";
+    Types[Context.UnsignedCharTy] = "%u";
+    Types[Context.UnsignedShortTy] = "%u";
     Types[Context.IntTy] = "%d";
     Types[Context.UnsignedIntTy] = "%u";
     Types[Context.LongTy] = "%ld";


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45615.142367.patch
Type: text/x-patch
Size: 552 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180413/8aa43e44/attachment.bin>


More information about the cfe-commits mailing list