[llvm-commits] [llvm] r159873 - /llvm/trunk/lib/VMCore/DebugInfo.cpp
Bill Wendling
isanbard at gmail.com
Fri Jul 6 16:06:17 PDT 2012
Author: void
Date: Fri Jul 6 18:06:16 2012
New Revision: 159873
URL: http://llvm.org/viewvc/llvm-project?rev=159873&view=rev
Log:
Check if it's a scope last, because several things are scopes.
Modified:
llvm/trunk/lib/VMCore/DebugInfo.cpp
Modified: llvm/trunk/lib/VMCore/DebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/DebugInfo.cpp?rev=159873&r1=159872&r2=159873&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/DebugInfo.cpp (original)
+++ llvm/trunk/lib/VMCore/DebugInfo.cpp Fri Jul 6 18:06:16 2012
@@ -998,8 +998,6 @@
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 @@
DIVariable(DbgNode).printInternal(OS);
} else if (this->isObjCProperty()) {
DIObjCProperty(DbgNode).printInternal(OS);
+ } else if (this->isScope()) {
+ DIScope(DbgNode).printInternal(OS);
}
}
More information about the llvm-commits
mailing list