summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-07-06 23:06:16 +0000
committerBill Wendling <isanbard@gmail.com>2012-07-06 23:06:16 +0000
commit3270582cebd5fef405115618abd2b50ba6bffc13 (patch)
treed7bae0caf8da65bfa7bb8b1767ebc541e11b9f02
parent183096d0c45efd748bad599f13a33ac96a44f152 (diff)
downloadbcm5719-llvm-3270582cebd5fef405115618abd2b50ba6bffc13.tar.gz
bcm5719-llvm-3270582cebd5fef405115618abd2b50ba6bffc13.zip
Check if it's a scope last, because several things are scopes.
llvm-svn: 159873
-rw-r--r--llvm/lib/VMCore/DebugInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/DebugInfo.cpp b/llvm/lib/VMCore/DebugInfo.cpp
index bb700a94817..1cecddb6da0 100644
--- a/llvm/lib/VMCore/DebugInfo.cpp
+++ b/llvm/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);
}
}
OpenPOWER on IntegriCloud