diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-07-06 23:43:12 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-07-06 23:43:12 +0000 |
commit | ee17cee77cb9a887cf4055369a346dd59efdbff6 (patch) | |
tree | b2a758dfa389e8cab1088d00e68a36929216679c /lib/VMCore | |
parent | 70cfaa34645bf8ad232c400f0fe7c48a9d715586 (diff) | |
download | external_llvm-ee17cee77cb9a887cf4055369a346dd59efdbff6.zip external_llvm-ee17cee77cb9a887cf4055369a346dd59efdbff6.tar.gz external_llvm-ee17cee77cb9a887cf4055369a346dd59efdbff6.tar.bz2 |
Print the name last.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159879 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/DebugInfo.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/VMCore/DebugInfo.cpp b/lib/VMCore/DebugInfo.cpp index 1cecddb..c8f8f7d 100644 --- a/lib/VMCore/DebugInfo.cpp +++ b/lib/VMCore/DebugInfo.cpp @@ -1081,12 +1081,7 @@ void DICompositeType::printInternal(raw_ostream &OS) const { } 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 @@ void DISubprogram::printInternal(raw_ostream &OS) const { if (getScopeLineNumber() != getLineNumber()) OS << " [scope " << getScopeLineNumber() << "]"; + + StringRef Res = getName(); + if (!Res.empty()) + OS << " [" << Res << ']'; } void DIGlobalVariable::printInternal(raw_ostream &OS) const { |