mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
IR: Drop the scope in DI template parameters
The scope/context is always the compile unit, which we replace with `nullptr` anyway (via `getNonCompileUnitScope()`). Drop it explicitly. I noticed this field was always null while writing testcase upgrade scripts to transition to the new hierarchy. Seems wasteful to transition it over if it's already out-of-use. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229740 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -732,7 +732,6 @@ public:
|
||||
|
||||
StringRef getName() const { return getHeaderField(1); }
|
||||
|
||||
DIScopeRef getContext() const { return getFieldAs<DIScopeRef>(1); }
|
||||
DITypeRef getType() const { return getFieldAs<DITypeRef>(2); }
|
||||
bool Verify() const;
|
||||
};
|
||||
@@ -745,7 +744,6 @@ public:
|
||||
|
||||
StringRef getName() const { return getHeaderField(1); }
|
||||
|
||||
DIScopeRef getContext() const { return getFieldAs<DIScopeRef>(1); }
|
||||
DITypeRef getType() const { return getFieldAs<DITypeRef>(2); }
|
||||
Metadata *getValue() const;
|
||||
bool Verify() const;
|
||||
|
||||
Reference in New Issue
Block a user