[llvm-commits] [llvm] r159879 - /llvm/trunk/lib/VMCore/DebugInfo.cpp

Bill Wendling isanbard at gmail.com
Fri Jul 6 16:43:12 PDT 2012


Author: void
Date: Fri Jul  6 18:43:12 2012
New Revision: 159879

URL: http://llvm.org/viewvc/llvm-project?rev=159879&view=rev
Log:
Print the name last.

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=159879&r1=159878&r2=159879&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/DebugInfo.cpp (original)
+++ llvm/trunk/lib/VMCore/DebugInfo.cpp Fri Jul  6 18:43:12 2012
@@ -1081,12 +1081,7 @@
 }
 
 void DISubprogram::printInternal(raw_ostream &OS) const {
-  StringRef Res = getName();
-  if (!Res.empty())
-    OS << " [" << Res << ']';
-
   // TODO : Print context
-
   OS << " [line " << getLineNumber() << ']';
 
   if (isLocalToUnit())
@@ -1097,6 +1092,10 @@
 
   if (getScopeLineNumber() != getLineNumber())
     OS << " [scope " << getScopeLineNumber() << "]";
+
+  StringRef Res = getName();
+  if (!Res.empty())
+    OS << " [" << Res << ']';
 }
 
 void DIGlobalVariable::printInternal(raw_ostream &OS) const {





More information about the llvm-commits mailing list