aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-linemap.cc
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2020-08-20 11:51:25 +0800
committerPhilip Herron <philip.herron@embecosm.com>2020-11-28 21:13:20 +0000
commitb758ec724cc06cb866a72ce17dbfd8a426cf21db (patch)
treecffb4e7c584f7da75ea42e57011c5a1d160d67a2 /gcc/rust/rust-linemap.cc
parentc26f60f6a28394e98ac1d830cbe8f632ef576dbb (diff)
downloadgcc-b758ec724cc06cb866a72ce17dbfd8a426cf21db.zip
gcc-b758ec724cc06cb866a72ce17dbfd8a426cf21db.tar.gz
gcc-b758ec724cc06cb866a72ce17dbfd8a426cf21db.tar.bz2
Lexer cleanup
Diffstat (limited to 'gcc/rust/rust-linemap.cc')
-rw-r--r--gcc/rust/rust-linemap.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/rust/rust-linemap.cc b/gcc/rust/rust-linemap.cc
index fef4603..5ee76bd 100644
--- a/gcc/rust/rust-linemap.cc
+++ b/gcc/rust/rust-linemap.cc
@@ -72,7 +72,8 @@ Gcc_linemap::to_string (Location location)
// Strip the source file down to the base file, to reduce clutter.
std::stringstream ss;
- ss << lbasename (path) << ":" << SOURCE_LINE (lmo, location.gcc_location ());
+ ss << lbasename (path) << ":" << SOURCE_LINE (lmo, location.gcc_location ())
+ << ":" << SOURCE_COLUMN (lmo, location.gcc_location ());
return ss.str ();
}