summaryrefslogtreecommitdiffstats
path: root/lib/IR/DebugInfo.cpp
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-10-09 19:46:28 +0000
committerManman Ren <manman.ren@gmail.com>2013-10-09 19:46:28 +0000
commitb4d9c11f6c7e0a38e750f946d5cea3ffa5ae8f61 (patch)
tree1c8e3279acc05997c5cd0ad7e17a94a73a4324eb /lib/IR/DebugInfo.cpp
parent9360e64e60f600bff98dbff96fabaab536947f86 (diff)
downloadexternal_llvm-b4d9c11f6c7e0a38e750f946d5cea3ffa5ae8f61.zip
external_llvm-b4d9c11f6c7e0a38e750f946d5cea3ffa5ae8f61.tar.gz
external_llvm-b4d9c11f6c7e0a38e750f946d5cea3ffa5ae8f61.tar.bz2
Debug Info: In DIBuilder, the context and type fields of template_type and
template_value are updated to use DIRef. A paired commit at clang is required due to changes to DIBuilder. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192320 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/DebugInfo.cpp')
-rw-r--r--lib/IR/DebugInfo.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp
index f5e7e26..a6ea942 100644
--- a/lib/IR/DebugInfo.cpp
+++ b/lib/IR/DebugInfo.cpp
@@ -1078,12 +1078,12 @@ void DebugInfoFinder::processSubprogram(DISubprogram SP) {
DIDescriptor Element = TParams.getElement(I);
if (Element.isTemplateTypeParameter()) {
DITemplateTypeParameter TType(Element);
- processScope(TType.getContext());
- processType(TType.getType());
+ processScope(TType.getContext().resolve(TypeIdentifierMap));
+ processType(TType.getType().resolve(TypeIdentifierMap));
} else if (Element.isTemplateValueParameter()) {
DITemplateValueParameter TVal(Element);
- processScope(TVal.getContext());
- processType(TVal.getType());
+ processScope(TVal.getContext().resolve(TypeIdentifierMap));
+ processType(TVal.getType().resolve(TypeIdentifierMap));
}
}
}