diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-06 18:02:43 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-06 18:02:43 +0000 |
commit | 930f388bad13f9de0e4d04f760720f117f9ffc86 (patch) | |
tree | 15fdc183839e742b1fcb15871eb7f309d5263f80 /llvm/lib/IR/DebugInfo.cpp | |
parent | 1e5b9f41312a234595ce329149a6e1c07bfd0145 (diff) | |
download | bcm5719-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.cpp | 9 |
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()); |