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 | 56543735c92f0bc7fc6101df36dacbdce97f06d2 (patch) | |
tree | 3aa43918eca833c7f00f68b54d3cbd762fdb49f4 /llvm/lib/VMCore/DebugInfo.cpp | |
parent | 44cd7e6746c80383c60c3c8e66a7a23988702a2e (diff) | |
download | bcm5719-llvm-56543735c92f0bc7fc6101df36dacbdce97f06d2.tar.gz bcm5719-llvm-56543735c92f0bc7fc6101df36dacbdce97f06d2.zip |
Print the name last.
llvm-svn: 159879
Diffstat (limited to 'llvm/lib/VMCore/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/VMCore/DebugInfo.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/VMCore/DebugInfo.cpp b/llvm/lib/VMCore/DebugInfo.cpp index 1cecddb6da0..c8f8f7d67b8 100644 --- a/llvm/lib/VMCore/DebugInfo.cpp +++ b/llvm/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 { |