mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +00:00
[DebugInfo] remove more node indirection (this time from the subprogram's variable lists)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174305 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -593,17 +593,14 @@ unsigned DISubprogram::isOptimized() const {
|
||||
MDNode *DISubprogram::getVariablesNodes() const {
|
||||
if (!DbgNode || DbgNode->getNumOperands() <= 19)
|
||||
return NULL;
|
||||
if (MDNode *Temp = dyn_cast_or_null<MDNode>(DbgNode->getOperand(19)))
|
||||
return dyn_cast_or_null<MDNode>(Temp->getOperand(0));
|
||||
return NULL;
|
||||
return dyn_cast_or_null<MDNode>(DbgNode->getOperand(19));
|
||||
}
|
||||
|
||||
DIArray DISubprogram::getVariables() const {
|
||||
if (!DbgNode || DbgNode->getNumOperands() <= 19)
|
||||
return DIArray();
|
||||
if (MDNode *T = dyn_cast_or_null<MDNode>(DbgNode->getOperand(19)))
|
||||
if (MDNode *A = dyn_cast_or_null<MDNode>(T->getOperand(0)))
|
||||
return DIArray(A);
|
||||
return DIArray(T);
|
||||
return DIArray();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user