diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-07-06 23:06:16 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-07-06 23:06:16 +0000 |
commit | 625252f4271097ed6cc2e8e94167cf05a5559ba4 (patch) | |
tree | 2af3428322eed81628b8cccfc7372f49f1aab5e5 /lib/VMCore | |
parent | db6faeb19d59deab232502da7d529abc4404171a (diff) | |
download | external_llvm-625252f4271097ed6cc2e8e94167cf05a5559ba4.zip external_llvm-625252f4271097ed6cc2e8e94167cf05a5559ba4.tar.gz external_llvm-625252f4271097ed6cc2e8e94167cf05a5559ba4.tar.bz2 |
Check if it's a scope last, because several things are scopes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159873 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/DebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/DebugInfo.cpp b/lib/VMCore/DebugInfo.cpp index bb700a9..1cecddb 100644 --- a/lib/VMCore/DebugInfo.cpp +++ b/lib/VMCore/DebugInfo.cpp @@ -998,8 +998,6 @@ void DIDescriptor::print(raw_ostream &OS) const { if (this->isSubrange()) { DISubrange(DbgNode).printInternal(OS); - } else if (this->isScope()) { - DIScope(DbgNode).printInternal(OS); } else if (this->isCompileUnit()) { DICompileUnit(DbgNode).printInternal(OS); } else if (this->isFile()) { @@ -1020,6 +1018,8 @@ void DIDescriptor::print(raw_ostream &OS) const { DIVariable(DbgNode).printInternal(OS); } else if (this->isObjCProperty()) { DIObjCProperty(DbgNode).printInternal(OS); + } else if (this->isScope()) { + DIScope(DbgNode).printInternal(OS); } } |