mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
LTO type uniquing: store the Decl field of a DIImportedEntity as a DIRef.
No other functionality changes, DIBuilder testcase is included in a paired CFE commit. This relaxes the assertion in isScopeRef to also accept subclasses of DIScope. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205279 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -663,7 +663,7 @@ namespace llvm {
|
||||
/// variable
|
||||
/// @param Line Line number
|
||||
DIImportedEntity createImportedDeclaration(DIScope Context,
|
||||
DIDescriptor Decl,
|
||||
DIScope Decl,
|
||||
unsigned Line);
|
||||
|
||||
/// insertDeclare - Insert a new llvm.dbg.declare intrinsic call.
|
||||
|
@ -783,7 +783,7 @@ class DIImportedEntity : public DIDescriptor {
|
||||
public:
|
||||
explicit DIImportedEntity(const MDNode *N) : DIDescriptor(N) {}
|
||||
DIScope getContext() const { return getFieldAs<DIScope>(1); }
|
||||
DIDescriptor getEntity() const { return getFieldAs<DIDescriptor>(2); }
|
||||
DIScopeRef getEntity() const { return getFieldAs<DIScopeRef>(2); }
|
||||
unsigned getLineNumber() const { return getUnsignedField(3); }
|
||||
StringRef getName() const { return getStringField(4); }
|
||||
bool Verify() const;
|
||||
|
Reference in New Issue
Block a user