[PATCH] D16006: [libcxxabi] Teach cxa_demangle about Hexagon's long double size
Ben Craig via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 8 12:07:50 PST 2016
bcraig created this revision.
bcraig added reviewers: howard.hinnant, logan, dsanders, rengolin.
bcraig added a subscriber: cfe-commits.
cxa_demangle's default size for a long double is 10 bytes. Hexagon only has an 8 byte long double though.
http://reviews.llvm.org/D16006
Files:
src/cxa_demangle.cpp
Index: src/cxa_demangle.cpp
===================================================================
--- src/cxa_demangle.cpp
+++ src/cxa_demangle.cpp
@@ -167,7 +167,7 @@
{
#if defined(__mips__) && defined(__mips_n64) || defined(__aarch64__)
static const size_t mangled_size = 32;
-#elif defined(__arm__) || defined(__mips__)
+#elif defined(__arm__) || defined(__mips__) || defined(__hexagon__)
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16006.44356.patch
Type: text/x-patch
Size: 551 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160108/83967a4b/attachment.bin>
More information about the cfe-commits
mailing list