[demangler] PPC and S390: Fix parsing of e-prefixed long double literals
authorXing Xue <xingxue@outlook.com>
Wed, 15 Apr 2020 13:59:06 +0000 (09:59 -0400)
committerXing Xue <xingxue@outlook.com>
Wed, 15 Apr 2020 13:59:06 +0000 (09:59 -0400)
commit4578fa8a1cc39dbb6c2a47a5358b7e298d2a4c17
treea8a1a35cfac6aec4d626f218891b5866ebb605b5
parent1242018033a7f1a3b4a1a830746afaa7b6719c07
[demangler] PPC and S390: Fix parsing of e-prefixed long double literals

Summary:
This patch is to fix the parsing of long double literals encoded with the e prefix on PowerPC and S390. For both PowerPC and S390, type code e is used for 64-bit long double literals and g is used for 128-bit long double literals. libcxxabi test case test_demangle.pass.cpp fails without the fix.

Authored by: xingxue-ibm

Reviewers: hubert.reinterpretcast, jasonliu, erik.pilkington, uweigand, mclow.li
sts, libc++abi

Reviewed by: hubert.reinterpretcast, erik.pilkington

Differential Revision: https://reviews.llvm.org/D74163
libcxxabi/src/demangle/ItaniumDemangle.h
llvm/include/llvm/Demangle/ItaniumDemangle.h