diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-22 03:12:25 +0000 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-22 03:12:25 +0000 |
| commit | 2621f7bdb4d3bb377d3e9bfb7f76ae527c8ba72d (patch) | |
| tree | cf2cb5eba719863d3f2beb2b2bd83cdfe7be2e72 /lldb/source/DataFormatters | |
| parent | 0f9e530c0f4d2449b093f08b7d46bd2ef174578c (diff) | |
| download | bcm5719-llvm-2621f7bdb4d3bb377d3e9bfb7f76ae527c8ba72d.tar.gz bcm5719-llvm-2621f7bdb4d3bb377d3e9bfb7f76ae527c8ba72d.zip | |
[FormatManage] Fix the format info order
The format info entries need to match the order of the enum entries.
This should fix the two failing data-formatter tests.
llvm-svn: 369617
Diffstat (limited to 'lldb/source/DataFormatters')
| -rw-r--r-- | lldb/source/DataFormatters/FormatManager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/DataFormatters/FormatManager.cpp b/lldb/source/DataFormatters/FormatManager.cpp index 9d89b8a8e22..efc5f059e44 100644 --- a/lldb/source/DataFormatters/FormatManager.cpp +++ b/lldb/source/DataFormatters/FormatManager.cpp @@ -47,7 +47,6 @@ static constexpr FormatInfo g_format_infos[] = { {eFormatFloat, 'f', "float"}, {eFormatOctal, 'o', "octal"}, {eFormatOSType, 'O', "OSType"}, - {eFormatUnicode8, 'u', "unicode8"}, {eFormatUnicode16, 'U', "unicode16"}, {eFormatUnicode32, '\0', "unicode32"}, {eFormatUnsigned, 'u', "unsigned decimal"}, @@ -70,7 +69,9 @@ static constexpr FormatInfo g_format_infos[] = { {eFormatAddressInfo, 'A', "address"}, {eFormatHexFloat, '\0', "hex float"}, {eFormatInstruction, 'i', "instruction"}, - {eFormatVoid, 'v', "void"}}; + {eFormatVoid, 'v', "void"}, + {eFormatUnicode8, 'u', "unicode8"}, +}; static_assert((sizeof(g_format_infos) / sizeof(g_format_infos[0])) == kNumFormats, |

