]> granicus.if.org Git - clang/commitdiff
Adding type info for f16c floating-point type. This is consistent with the
authorYunzhong Gao <Yunzhong_Gao@playstation.sony.com>
Thu, 17 Apr 2014 02:26:26 +0000 (02:26 +0000)
committerYunzhong Gao <Yunzhong_Gao@playstation.sony.com>
Thu, 17 Apr 2014 02:26:26 +0000 (02:26 +0000)
Itanium ABI in 2.9.2 Place of Emission.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206439 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGRTTI.cpp
test/CodeGenCXX/rtti-fundamental.cpp

index 7049df7f78a04bc3e16e2722a8bbe965b8151acc..04523bc08baac2ca7fd64162e47a651330076b75 100644 (file)
@@ -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)
index 14297b68cf09902354a24c718dcc43cc8efe08bb..e70c3aa365976a21f7b3ba0363a75a33dd7f6560 100644 (file)
@@ -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