It currently receives an output parameter and returns
std::error_code. Expected<StringRef> fits for this purpose perfectly.
Details
Details
Diff Detail
Diff Detail
- Repository
- rLLD LLVM Linker
Event Timeline
Comment Actions
Looks good, apart from one comment.
llvm/tools/llvm-readobj/COFFDumper.cpp | ||
---|---|---|
1545 ↗ | (On Diff #197709) | I'm not sure this is the right way to throw away an Error. Assuming for a moment that we don't want to report this error here (I'm guessing we probably should at some point), you should use something like consumeError. |
llvm/tools/llvm-readobj/COFFDumper.cpp | ||
---|---|---|
1545 ↗ | (On Diff #197709) | Thanks! I forgot consumeError. |
Comment Actions
LGTM. It might be worth a TODO/FIXME next to that consumeError saying we should propagate it (assuming that we should).