[PATCH] D18699: [ELF] - Teach linkerscript error handler to show full script line + column marker on error.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 1 14:22:32 PDT 2016
ruiu added a comment.
Let's define
StringRef getLine(StringRef S, size_t Pos)
which returns a line where the character S[Pos] belongs to. You can define that function using StringRef::rfind and StringRef::find (so you don't need a hand-written for loop.) That helper function should make things simpler.
http://reviews.llvm.org/D18699
More information about the llvm-commits
mailing list