IIRC this was requested in some earlier review touching this code.
It makes returning of None and checking for a failed response clearer.
Paths
| Differential D68935
[LLD] [COFF] Wrap file location pair<StringRef,int> in Optional<>. NFC. ClosedPublic Authored by mstorsjo on Oct 14 2019, 12:14 AM.
Details Summary IIRC this was requested in some earlier review touching this code. It makes returning of None and checking for a failed response clearer.
Diff Detail
Event TimelineComment Actions I am in favor of this change. It makes the error case clearer.
This revision is now accepted and ready to land.Oct 15 2019, 2:10 AM Closed by commit rG9318c94ebbf2: [LLD] [COFF] Wrap file location pair<StringRef,int> in Optional<>. NFC. (authored by mstorsjo). · Explain WhyOct 15 2019, 2:42 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 224979 lld/COFF/PDB.h
lld/COFF/PDB.cpp
lld/COFF/SymbolTable.cpp
|
return {{filename, *lineNumber}}; works (but I am not sure whether others like it)