Prints locations for (most of) errors raised in Target.cpp file.
Details
Diff Detail
Event Timeline
ELF/Writer.cpp | ||
---|---|---|
1566 | I think we should make OutputSections global, instead of doing a plumbing work to propagate information from Target to Writer. |
ELF/Writer.cpp | ||
---|---|---|
1566 | How about Buffer pointer? It isn't stored in OutputSection<ELFT>. |
ELF/Writer.cpp | ||
---|---|---|
1566 | Interesting idea. Not sure if that's actually good at the moment, but it's worth a try. |
ELF/Target.cpp | ||
---|---|---|
61–62 | I don't think we need a new error-ish function here. I'd define a function that returns the output location info as a string, then I could write like this. error(getErrorLoc(Loc) + ": relocation " + toString(Type) + " out of range"); | |
817 | Then this can be fatal(getErrorLoc(Loc) + ": unrecognized reloc " + Twine(Type)); | |
ELF/Writer.cpp | ||
1571–1572 | Just return the return value of getLocation(). |
I don't think we need a new error-ish function here. I'd define a function that returns the output location info as a string, then I could write like this.