mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
DebugInfoFinder: handle template params of a DISubprogram.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189131 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
b7f81d372a
commit
003f551912
1 file changed
+13
@@ -1005,6 +1005,19 @@ void DebugInfoFinder::processSubprogram(DISubprogram SP) {
|
||||
return;
|
||||
processScope(SP.getContext());
|
||||
processType(SP.getType());
|
||||
DIArray TParams = SP.getTemplateParams();
|
||||
for (unsigned I = 0, E = TParams.getNumElements(); I != E; ++I) {
|
||||
DIDescriptor Element = TParams.getElement(I);
|
||||
if (Element.isTemplateTypeParameter()) {
|
||||
DITemplateTypeParameter TType(Element);
|
||||
processScope(TType.getContext());
|
||||
processType(TType.getType());
|
||||
} else if (Element.isTemplateValueParameter()) {
|
||||
DITemplateValueParameter TVal(Element);
|
||||
processScope(TVal.getContext());
|
||||
processType(TVal.getType());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// processDeclare - Process DbgDeclareInst.
|
||||
|
||||
Reference in new issue
Block a user