diff options
author | Manman Ren <manman.ren@gmail.com> | 2013-10-09 19:46:28 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2013-10-09 19:46:28 +0000 |
commit | 88b0f948f50d6c6a7891c7dae1cbd8c457f8c056 (patch) | |
tree | ec2604d6ba490ef27537fae18e21d8ed9359af22 /llvm/lib/IR/DebugInfo.cpp | |
parent | 718be877f88fa2fba5fb4f207d110177cf0d2eea (diff) | |
download | bcm5719-llvm-88b0f948f50d6c6a7891c7dae1cbd8c457f8c056.tar.gz bcm5719-llvm-88b0f948f50d6c6a7891c7dae1cbd8c457f8c056.zip |
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.
llvm-svn: 192320
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index f5e7e2674fc..a6ea942059b 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/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)); } } } |