From d15608e9861ae4c2667780e5f5b59d6b10472aec Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 13 Jul 2011 21:23:30 +0000 Subject: [PATCH] Emit debug info for extended vectors. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135083 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGDebugInfo.cpp | 3 --- test/CodeGen/debug-info.c | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 687aea5c08..4c12445917 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -1524,10 +1524,7 @@ llvm::DIType CGDebugInfo::CreateTypeNode(QualType Ty, #include "clang/AST/TypeNodes.def" assert(false && "Dependent types cannot show up in debug information"); - // FIXME: Handle these. case Type::ExtVector: - return llvm::DIType(); - case Type::Vector: return CreateType(cast(Ty), Unit); case Type::ObjCObjectPointer: diff --git a/test/CodeGen/debug-info.c b/test/CodeGen/debug-info.c index 876c6c2242..af2ce969bc 100644 --- a/test/CodeGen/debug-info.c +++ b/test/CodeGen/debug-info.c @@ -54,3 +54,8 @@ __uint128_t foo128 () __uint128_t int128 = 44; return int128; } + +// CHECK: uint64x2_t +typedef unsigned long long uint64_t; +typedef uint64_t uint64x2_t __attribute__((ext_vector_type(2))); +uint64x2_t extvectbar[4]; -- 2.50.1