mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
DebugInfo: Remove DICompositeType mutation API
Change `DIBuilder` to mutate `MDCompositeTypeBase` directly, and remove the wrapping API in `DICompositeType`. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234289 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -125,23 +125,8 @@ static bool isDescriptorRef(const Metadata *MD) {
|
||||
}
|
||||
#endif
|
||||
|
||||
void DICompositeType::setArraysHelper(MDNode *Elements, MDNode *TParams) {
|
||||
TypedTrackingMDRef<MDCompositeTypeBase> N(get());
|
||||
if (Elements)
|
||||
N->replaceElements(cast<MDTuple>(Elements));
|
||||
if (TParams)
|
||||
N->replaceTemplateParams(cast<MDTuple>(TParams));
|
||||
DbgNode = N;
|
||||
}
|
||||
|
||||
DIScopeRef DIScope::getRef() const { return MDScopeRef::get(get()); }
|
||||
|
||||
void DICompositeType::setContainingType(DICompositeType ContainingType) {
|
||||
TypedTrackingMDRef<MDCompositeTypeBase> N(get());
|
||||
N->replaceVTableHolder(MDTypeRef::get(ContainingType));
|
||||
DbgNode = N;
|
||||
}
|
||||
|
||||
bool DIVariable::isInlinedFnArgument(const Function *CurFn) {
|
||||
assert(CurFn && "Invalid function");
|
||||
DISubprogram SP = dyn_cast<MDSubprogram>(getContext());
|
||||
|
Reference in New Issue
Block a user