[libcxxabi][mips] Correct float_data::mangled_size for all ABI's.

Summary:
Patch by Nitesh Jain and Jaydeep Patil with a small revision to use ABIs rather
than Architecture Revisions (which currently imply particular ABIs).

Fixes test_demangle.pass.cpp (PR24149).

Subscribers: mclow.lists, jaydeep, nitesh.jain, hans, cfe-commits

Differential Revision: http://reviews.llvm.org/D11483

llvm-svn: 243645
This commit is contained in:
Daniel Sanders 2015-07-30 16:11:04 +00:00
parent d6665178a8
commit f8e6f4496b

View File

@ -156,7 +156,9 @@ constexpr const char* float_data<double>::spec;
template <>
struct float_data<long double>
{
#if defined(__arm__)
#if defined(__mips__) && defined(__mips_n64)
static const size_t mangled_size = 32;
#elif defined(__arm__) || defined(__mips__)
static const size_t mangled_size = 16;
#else
static const size_t mangled_size = 20; // May need to be adjusted to 16 or 24 on other platforms