summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/DebugInfo.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-06 18:02:43 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-06 18:02:43 +0000
commit930f388bad13f9de0e4d04f760720f117f9ffc86 (patch)
tree15fdc183839e742b1fcb15871eb7f309d5263f80 /llvm/lib/IR/DebugInfo.cpp
parent1e5b9f41312a234595ce329149a6e1c07bfd0145 (diff)
downloadbcm5719-llvm-930f388bad13f9de0e4d04f760720f117f9ffc86.tar.gz
bcm5719-llvm-930f388bad13f9de0e4d04f760720f117f9ffc86.zip
DebugInfo: Create MDTypeRef, etc., to replace DITypeRef
Create a string-based wrapper in the debug info hierarchy for type references. llvm-svn: 234188
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r--llvm/lib/IR/DebugInfo.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index 2f497e9dc11..550418a1573 100644
--- a/llvm/lib/IR/DebugInfo.cpp
+++ b/llvm/lib/IR/DebugInfo.cpp
@@ -253,14 +253,7 @@ void DICompositeType::setArraysHelper(MDNode *Elements, MDNode *TParams) {
DbgNode = N;
}
-DIScopeRef DIScope::getRef() const {
- if (!isCompositeType())
- return DIScopeRef(*this);
- DICompositeType DTy(DbgNode);
- if (!DTy.getIdentifier())
- return DIScopeRef(*this);
- return DIScopeRef(DTy.getIdentifier());
-}
+DIScopeRef DIScope::getRef() const { return MDScopeRef::get(get()); }
void DICompositeType::setContainingType(DICompositeType ContainingType) {
TypedTrackingMDRef<MDCompositeTypeBase> N(get());
OpenPOWER on IntegriCloud