From 0b0eeaaaf6a57845feb5814a75333895f36d6907 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Fri, 24 Jul 2015 18:12:54 +0000 Subject: Correct x86_64 Android fp128 mangled name These changes are for Android x86_64 targets to be compatible with current Android g++. https://llvm.org/bugs/show_bug.cgi?id=23897 Use 'g' and 'Cg' for "long double" and "long double _Complex" mangled type names. Differential Revision: http://reviews.llvm.org/D11466 llvm-svn: 243133 --- clang/lib/Basic/Targets.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/lib/Basic/Targets.cpp') diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 6e32e19028d..2d71517019d 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -7071,6 +7071,10 @@ public: : LinuxTargetInfo(Triple) { LongDoubleFormat = &llvm::APFloat::IEEEquad; } + + bool useFloat128ManglingForLongDouble() const override { + return true; + } }; } // end anonymous namespace -- cgit v1.2.3