summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorSjoerd Meijer <sjoerd.meijer@arm.com>2017-09-08 09:42:32 +0000
committerSjoerd Meijer <sjoerd.meijer@arm.com>2017-09-08 09:42:32 +0000
commitab36f33db8ed1cd16277016f834527254c7a3d0f (patch)
tree4c0858785f71098aab2477eedbec55e76d4f0b8a /clang/lib/CodeGen/CGDebugInfo.cpp
parent51ee12a9fbef806fd770151de343c563402de42b (diff)
downloadbcm5719-llvm-ab36f33db8ed1cd16277016f834527254c7a3d0f.tar.gz
bcm5719-llvm-ab36f33db8ed1cd16277016f834527254c7a3d0f.zip
Add _Float16 as a C/C++ source language type
This adds _Float16 as a source language type, which is a 16-bit floating point type defined in C11 extension ISO/IEC TS 18661-3. In follow up patches documentation and more tests will be added. Differential Revision: https://reviews.llvm.org/D33719 llvm-svn: 312781
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 008f27c7a8f..befb704f39e 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -667,6 +667,7 @@ llvm::DIType *CGDebugInfo::CreateType(const BuiltinType *BT) {
case BuiltinType::Half:
case BuiltinType::Float:
case BuiltinType::LongDouble:
+ case BuiltinType::Float16:
case BuiltinType::Float128:
case BuiltinType::Double:
// FIXME: For targets where long double and __float128 have the same size,
OpenPOWER on IntegriCloud