summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/DebugInfo.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-18 20:30:45 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-18 20:30:45 +0000
commit89b075e53a42fdcf22f249bbe64b064ca5f4ae84 (patch)
tree8a14fadc958539395583414e675f098bf882cb19 /llvm/lib/IR/DebugInfo.cpp
parent67bf4bd3161fe335da6d7918d00b66828d6f9b92 (diff)
downloadbcm5719-llvm-89b075e53a42fdcf22f249bbe64b064ca5f4ae84.tar.gz
bcm5719-llvm-89b075e53a42fdcf22f249bbe64b064ca5f4ae84.zip
IR: Drop the scope in DI template parameters
The scope/context is always the compile unit, which we replace with `nullptr` anyway (via `getNonCompileUnitScope()`). Drop it explicitly. I noticed this field was always null while writing testcase upgrade scripts to transition to the new hierarchy. Seems wasteful to transition it over if it's already out-of-use. llvm-svn: 229740
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r--llvm/lib/IR/DebugInfo.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index 92d7e4590a9..f682ad548f2 100644
--- a/llvm/lib/IR/DebugInfo.cpp
+++ b/llvm/lib/IR/DebugInfo.cpp
@@ -1117,11 +1117,9 @@ void DebugInfoFinder::processSubprogram(DISubprogram SP) {
DIDescriptor Element = TParams.getElement(I);
if (Element.isTemplateTypeParameter()) {
DITemplateTypeParameter TType(Element);
- processScope(TType.getContext().resolve(TypeIdentifierMap));
processType(TType.getType().resolve(TypeIdentifierMap));
} else if (Element.isTemplateValueParameter()) {
DITemplateValueParameter TVal(Element);
- processScope(TVal.getContext().resolve(TypeIdentifierMap));
processType(TVal.getType().resolve(TypeIdentifierMap));
}
}
OpenPOWER on IntegriCloud