mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Remove unused field in DISubprogram
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177661 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -908,7 +908,6 @@ DISubprogram DIBuilder::createFunction(DIDescriptor Context,
|
||||
Value *TElts[] = { GetTagConstant(VMContext, DW_TAG_base_type) };
|
||||
Value *Elts[] = {
|
||||
GetTagConstant(VMContext, dwarf::DW_TAG_subprogram),
|
||||
Constant::getNullValue(Type::getInt32Ty(VMContext)),
|
||||
getNonCompileUnitScope(Context),
|
||||
MDString::get(VMContext, Name),
|
||||
MDString::get(VMContext, Name),
|
||||
@ -934,7 +933,9 @@ DISubprogram DIBuilder::createFunction(DIDescriptor Context,
|
||||
// Create a named metadata so that we do not lose this mdnode.
|
||||
if (isDefinition)
|
||||
AllSubprograms.push_back(Node);
|
||||
return DISubprogram(Node);
|
||||
DISubprogram S(Node);
|
||||
assert(S.Verify() && "createFunction should return a valid DISubprogram");
|
||||
return S;
|
||||
}
|
||||
|
||||
/// createMethod - Create a new descriptor for the specified C++ method.
|
||||
@ -954,7 +955,6 @@ DISubprogram DIBuilder::createMethod(DIDescriptor Context,
|
||||
Value *TElts[] = { GetTagConstant(VMContext, DW_TAG_base_type) };
|
||||
Value *Elts[] = {
|
||||
GetTagConstant(VMContext, dwarf::DW_TAG_subprogram),
|
||||
Constant::getNullValue(Type::getInt32Ty(VMContext)),
|
||||
getNonCompileUnitScope(Context),
|
||||
MDString::get(VMContext, Name),
|
||||
MDString::get(VMContext, Name),
|
||||
@ -979,7 +979,9 @@ DISubprogram DIBuilder::createMethod(DIDescriptor Context,
|
||||
MDNode *Node = MDNode::get(VMContext, Elts);
|
||||
if (isDefinition)
|
||||
AllSubprograms.push_back(Node);
|
||||
return DISubprogram(Node);
|
||||
DISubprogram S(Node);
|
||||
assert(S.Verify() && "createMethod should return a valid DISubprogram");
|
||||
return S;
|
||||
}
|
||||
|
||||
/// createNameSpace - This creates new descriptor for a namespace
|
||||
|
Reference in New Issue
Block a user