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

Duncan P. N. Exon Smith dexonsmith at apple.com
Wed Feb 25 20:50:29 PST 2015


> On 2015 Feb 25, at 20:49, David Blaikie <dblaikie at gmail.com> wrote:
> 
> 
> 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)

Is that allowed now?

> 
> >    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





More information about the llvm-commits mailing list