summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/DebugInfo.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-07-06 23:43:12 +0000
committerBill Wendling <isanbard@gmail.com>2012-07-06 23:43:12 +0000
commit56543735c92f0bc7fc6101df36dacbdce97f06d2 (patch)
tree3aa43918eca833c7f00f68b54d3cbd762fdb49f4 /llvm/lib/VMCore/DebugInfo.cpp
parent44cd7e6746c80383c60c3c8e66a7a23988702a2e (diff)
downloadbcm5719-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.cpp9
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 {
OpenPOWER on IntegriCloud