forked from OSchip/llvm-project
IR: Add default constructor for DIImportedEntity
Add a default constructor for `DIImportedEntity`, to be used in clang in a follow-up. llvm-svn: 230609
This commit is contained in:
parent
1d862af764
commit
c316bbb912
|
@ -1030,6 +1030,7 @@ class DIImportedEntity : public DIDescriptor {
|
|||
void printInternal(raw_ostream &OS) const;
|
||||
|
||||
public:
|
||||
DIImportedEntity() {}
|
||||
explicit DIImportedEntity(const MDNode *N) : DIDescriptor(N) {}
|
||||
DIScope getContext() const { return getFieldAs<DIScope>(1); }
|
||||
DIDescriptorRef getEntity() const { return getFieldAs<DIDescriptorRef>(2); }
|
||||
|
|
Loading…
Reference in New Issue