mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
IR: Add default constructor for DIImportedEntity
Add a default constructor for `DIImportedEntity`, to be used in clang in a follow-up. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230609 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1030,6 +1030,7 @@ class DIImportedEntity : public DIDescriptor {
|
|||||||
void printInternal(raw_ostream &OS) const;
|
void printInternal(raw_ostream &OS) const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
DIImportedEntity() {}
|
||||||
explicit DIImportedEntity(const MDNode *N) : DIDescriptor(N) {}
|
explicit DIImportedEntity(const MDNode *N) : DIDescriptor(N) {}
|
||||||
DIScope getContext() const { return getFieldAs<DIScope>(1); }
|
DIScope getContext() const { return getFieldAs<DIScope>(1); }
|
||||||
DIDescriptorRef getEntity() const { return getFieldAs<DIDescriptorRef>(2); }
|
DIDescriptorRef getEntity() const { return getFieldAs<DIDescriptorRef>(2); }
|
||||||
|
Reference in New Issue
Block a user