Prints locations for (most of) errors raised in Target.cpp file.
Details
Diff Detail
Event Timeline
ELF/Writer.cpp | ||
---|---|---|
1555 | I think we should make OutputSections global, instead of doing a plumbing work to propagate information from Target to Writer. |
ELF/Writer.cpp | ||
---|---|---|
1555 | How about Buffer pointer? It isn't stored in OutputSection<ELFT>. |
ELF/Writer.cpp | ||
---|---|---|
1555 | Interesting idea. Not sure if that's actually good at the moment, but it's worth a try. |
ELF/Target.cpp | ||
---|---|---|
61 | 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"); | |
813 | Then this can be fatal(getErrorLoc(Loc) + ": unrecognized reloc " + Twine(Type)); | |
ELF/Writer.cpp | ||
1560–1561 | 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.