diff options
Diffstat (limited to 'source/Symbol/LineEntry.cpp')
| -rw-r--r-- | source/Symbol/LineEntry.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/Symbol/LineEntry.cpp b/source/Symbol/LineEntry.cpp index 21aa2557518d..bffcc5321b11 100644 --- a/source/Symbol/LineEntry.cpp +++ b/source/Symbol/LineEntry.cpp @@ -50,7 +50,6 @@ bool LineEntry::IsValid() const { } bool LineEntry::DumpStopContext(Stream *s, bool show_fullpaths) const { - bool result = false; if (file) { if (show_fullpaths) file.Dump(s); @@ -59,14 +58,15 @@ bool LineEntry::DumpStopContext(Stream *s, bool show_fullpaths) const { if (line) s->PutChar(':'); - result = true; } - if (line) + if (line) { s->Printf("%u", line); - else - result = false; - - return result; + if (column) { + s->PutChar(':'); + s->Printf("%u", column); + } + } + return file || line; } bool LineEntry::Dump(Stream *s, Target *target, bool show_file, |
