[PATCH] Use the zero-argument DIBuilder::createNullPtrType in Clang.

Eric Christopher echristo at gmail.com
Wed Jun 26 17:44:52 PDT 2013


Obviously OK given the llvm patch.

Thanks!

-eric

On Wed, Jun 26, 2013 at 5:28 PM, Peter Collingbourne <peter at pcc.me.uk> wrote:
> 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)]
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>



More information about the cfe-commits mailing list