[PATCH] Use the zero-argument DIBuilder::createNullPtrType in Clang.
Peter Collingbourne
peter at pcc.me.uk
Wed Jun 26 17:28:42 PDT 2013
Hi dblaikie,
http://llvm-reviews.chandlerc.com/D1051
Files:
lib/CodeGen/CGDebugInfo.cpp
test/CodeGenCXX/debug-info-nullptr.cpp
Index: lib/CodeGen/CGDebugInfo.cpp
===================================================================
--- lib/CodeGen/CGDebugInfo.cpp
+++ lib/CodeGen/CGDebugInfo.cpp
@@ -369,8 +369,7 @@
case BuiltinType::Dependent:
llvm_unreachable("Unexpected builtin type");
case BuiltinType::NullPtr:
- return DBuilder.
- createNullPtrType(BT->getName(CGM.getLangOpts()));
+ return DBuilder.createNullPtrType();
case BuiltinType::Void:
return llvm::DIType();
case BuiltinType::ObjCClass:
Index: test/CodeGenCXX/debug-info-nullptr.cpp
===================================================================
--- test/CodeGenCXX/debug-info-nullptr.cpp
+++ test/CodeGenCXX/debug-info-nullptr.cpp
@@ -4,4 +4,4 @@
decltype(nullptr) t = 0;
}
-// CHECK: [ DW_TAG_unspecified_type ] [nullptr_t]
+// CHECK: [ DW_TAG_unspecified_type ] [decltype(nullptr)]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1051.1.patch
Type: text/x-patch
Size: 867 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130626/843a8680/attachment.bin>
More information about the cfe-commits
mailing list