forked from OSchip/llvm-project
parent
04d6d47865
commit
ecaf9ac0bb
|
@ -302,8 +302,8 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) {
|
||||||
assert(0 && "Unexpected builtin type UnknownAny");
|
assert(0 && "Unexpected builtin type UnknownAny");
|
||||||
return llvm::DIType();
|
return llvm::DIType();
|
||||||
case BuiltinType::NullPtr:
|
case BuiltinType::NullPtr:
|
||||||
assert(0 && "Unexpected builtin type NullPtr");
|
return DBuilder.
|
||||||
return llvm::DIType();
|
createNullPtrType(BT->getName(CGM.getContext().getLangOptions()));
|
||||||
case BuiltinType::Void:
|
case BuiltinType::Void:
|
||||||
return llvm::DIType();
|
return llvm::DIType();
|
||||||
case BuiltinType::ObjCClass:
|
case BuiltinType::ObjCClass:
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
// RUN: %clang_cc1 -S -std=c++0x -masm-verbose -g %s -o -| FileCheck %s
|
// RUN: %clang_cc1 -S -std=c++0x -masm-verbose -g %s -o -| FileCheck %s
|
||||||
|
|
||||||
//CHECK: .byte 16
|
//CHECK: .ascii "char16_t"
|
||||||
//CHECK-NEXT: .ascii "char16_t"
|
//CHECK-NEXT: .byte 0
|
||||||
|
//CHECK-NEXT: .byte 16
|
||||||
|
|
||||||
// 16 is DW_ATE_UTF (0x10) encoding attribute.
|
// 16 is DW_ATE_UTF (0x10) encoding attribute.
|
||||||
char16_t char_a = u'h';
|
char16_t char_a = u'h';
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
// RUN: %clang_cc1 -S -std=c++0x -masm-verbose -g %s -o -| FileCheck %s
|
||||||
|
|
||||||
|
//CHECK: DW_TAG_unspecified_type
|
||||||
|
//CHECK-NEXT: "nullptr_t"
|
||||||
|
|
||||||
|
void foo() {
|
||||||
|
decltype(nullptr) t = 0;
|
||||||
|
}
|
Loading…
Reference in New Issue