Since GNU ar 2.31, 'O' prints member offsets beside file names.
It is ignored for thin archives.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM
tools/llvm-ar/llvm-ar.cpp | ||
---|---|---|
498 ↗ | (On Diff #225359) | This code surprised me a little bit, although it is correct. I'd use utohexstr and operator<< instead of raw_ostream::write_hex. |
Comment Actions
Address review comments
- (outs() << " 0x").write_hex(C.getDataOffset());
>
outs() << (" 0x" + utohexstr(C.getDataOffset(), true));
- DisplayOffsets -> DisplayMemberOffsets
tools/llvm-ar/llvm-ar.cpp | ||
---|---|---|
498 ↗ | (On Diff #225381) | The following style is more common. Doesn't this work? outs() << " 0x" << utohexstr(C.getDataOffset(), true); |