[llvm] r230609 - IR: Add default constructor for DIImportedEntity

David Blaikie dblaikie at gmail.com
Wed Feb 25 20:49:14 PST 2015


On Feb 25, 2015 8:44 PM, "Duncan P. N. Exon Smith" <dexonsmith at apple.com>
wrote:
>
> Author: dexonsmith
> Date: Wed Feb 25 22:41:10 2015
> New Revision: 230609
>
> URL: http://llvm.org/viewvc/llvm-project?rev=230609&view=rev
> Log:
> IR: Add default constructor for DIImportedEntity
>
> Add a default constructor for `DIImportedEntity`, to be used in clang in
> a follow-up.
>
> Modified:
>     llvm/trunk/include/llvm/IR/DebugInfo.h
>
> Modified: llvm/trunk/include/llvm/IR/DebugInfo.h
> URL:
http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/DebugInfo.h?rev=230609&r1=230608&r2=230609&view=diff
>
==============================================================================
> --- llvm/trunk/include/llvm/IR/DebugInfo.h (original)
> +++ llvm/trunk/include/llvm/IR/DebugInfo.h Wed Feb 25 22:41:10 2015
> @@ -1030,6 +1030,7 @@ class DIImportedEntity : public DIDescri
>    void printInternal(raw_ostream &OS) const;
>
>  public:
> +  DIImportedEntity() {}

= default? (Helps preserve triviality where applicable)

>    explicit DIImportedEntity(const MDNode *N) : DIDescriptor(N) {}
>    DIScope getContext() const { return getFieldAs<DIScope>(1); }
>    DIDescriptorRef getEntity() const { return
getFieldAs<DIDescriptorRef>(2); }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150225/4aedc245/attachment.html>


More information about the llvm-commits mailing list