mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-25 06:40:18 +00:00
[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:
parent
d6665178a8
commit
f8e6f4496b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user