summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2014-07-28 22:24:06 +0000
committerManman Ren <manman.ren@gmail.com>2014-07-28 22:24:06 +0000
commitf8a1967c8c37018a35a787b673f5dead1d524185 (patch)
tree9906cd6ae61da22a67a0e7f96447c375f1cc3aee /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent831f05802e36c8002213a42e63b2a9a501a294d1 (diff)
downloadbcm5719-llvm-f8a1967c8c37018a35a787b673f5dead1d524185.tar.gz
bcm5719-llvm-f8a1967c8c37018a35a787b673f5dead1d524185.zip
[Debug Info] add DISubroutineType and its creation takes DITypeArray.
DITypeArray is an array of DITypeRef, at its creation, we will create DITypeRef (i.e use the identifier if the type node has an identifier). This is the last patch to unique the type array of a subroutine type. rdar://17628609 llvm-svn: 214132
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 89e9547bdb7..3ac4899f544 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -468,8 +468,8 @@ DIE *DwarfDebug::createScopeChildrenDIE(
// If this is a variadic function, add an unspecified parameter.
DISubprogram SP(Scope->getScopeNode());
- DIArray FnArgs = SP.getType().getElements();
- if (FnArgs.getElement(FnArgs.getNumElements() - 1)
+ DITypeArray FnArgs = SP.getType().getTypeArray();
+ if (resolve(FnArgs.getElement(FnArgs.getNumElements() - 1))
.isUnspecifiedParameter()) {
Children.push_back(
make_unique<DIE>(dwarf::DW_TAG_unspecified_parameters));
OpenPOWER on IntegriCloud