summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYunzhong Gao <Yunzhong_Gao@playstation.sony.com>2014-04-17 02:26:26 +0000
committerYunzhong Gao <Yunzhong_Gao@playstation.sony.com>2014-04-17 02:26:26 +0000
commit06770f938116120bf7dee13a76b78dd56d8b3bc6 (patch)
treebe6dd67ee1b7ba29c522737577e34958356b74a2
parent033135c5eb56e45938859d3ac8246349a41a5fba (diff)
downloadbcm5719-llvm-06770f938116120bf7dee13a76b78dd56d8b3bc6.tar.gz
bcm5719-llvm-06770f938116120bf7dee13a76b78dd56d8b3bc6.zip
Adding type info for f16c floating-point type. This is consistent with the
Itanium ABI in 2.9.2 Place of Emission. Differential Revision: http://reviews.llvm.org/D2750 llvm-svn: 206439
-rw-r--r--clang/lib/CodeGen/CGRTTI.cpp3
-rw-r--r--clang/test/CodeGenCXX/rtti-fundamental.cpp5
2 files changed, 7 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGRTTI.cpp b/clang/lib/CodeGen/CGRTTI.cpp
index 7049df7f78a..04523bc08ba 100644
--- a/clang/lib/CodeGen/CGRTTI.cpp
+++ b/clang/lib/CodeGen/CGRTTI.cpp
@@ -984,7 +984,8 @@ void CodeGenModule::EmitFundamentalRTTIDescriptors() {
Context.UnsignedShortTy, Context.IntTy,
Context.UnsignedIntTy, Context.LongTy,
Context.UnsignedLongTy, Context.LongLongTy,
- Context.UnsignedLongLongTy, Context.FloatTy,
+ Context.UnsignedLongLongTy,
+ Context.HalfTy, Context.FloatTy,
Context.DoubleTy, Context.LongDoubleTy,
Context.Char16Ty, Context.Char32Ty };
for (unsigned i = 0; i < llvm::array_lengthof(FundamentalTypes); ++i)
diff --git a/clang/test/CodeGenCXX/rtti-fundamental.cpp b/clang/test/CodeGenCXX/rtti-fundamental.cpp
index 14297b68cf0..e70c3aa3659 100644
--- a/clang/test/CodeGenCXX/rtti-fundamental.cpp
+++ b/clang/test/CodeGenCXX/rtti-fundamental.cpp
@@ -89,6 +89,11 @@ namespace __cxxabiv1 {
// CHECK: @_ZTIPy = constant
// CHECK: @_ZTIPKy = constant
+// half
+// CHECK: @_ZTIDh = constant
+// CHECK: @_ZTIPDh = constant
+// CHECK: @_ZTIPKDh = constant
+
// float
// CHECK: @_ZTIf = constant
// CHECK: @_ZTIPf = constant
OpenPOWER on IntegriCloud