and use that to simplify MD5's hex string code which was previously using a string stream, as well as Clang's CGDebugInfo::computeChecksum().
NFC.
Paths
| Differential D116960
[ADT] Add an in-place version of toHex() ClosedPublic Authored by hans on Jan 10 2022, 10:50 AM.
Details Summary and use that to simplify MD5's hex string code which was previously using a string stream, as well as Clang's CGDebugInfo::computeChecksum(). NFC.
Diff Detail Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 10 2022, 10:50 AM Comment Actions Mostly LGTM, just a couple of comments on the drive-by changes to hexdigit() (I might split that (and the new call in toHex()) into a separate commit, but if you keep them here please mention them in the commit message).
This revision is now accepted and ready to land.Jan 10 2022, 12:07 PM Comment Actions
Thanks! I'll commit the hexdigit() change separately.
This revision was landed with ongoing or failed builds.Jan 11 2022, 2:32 AM Closed by commit rG83797c03d2ee: [ADT] Use a lookup table in hexdigit() and call that from toHex() (authored by hans). · Explain Why This revision was automatically updated to reflect the committed changes. hans marked 2 inline comments as done.
Revision Contents
Diff 398696 clang/include/clang/Basic/LangOptions.h
clang/lib/CodeGen/CGDebugInfo.h
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGen/debug-info-file-checksum.c
llvm/include/llvm/ADT/StringExtras.h
llvm/include/llvm/Support/MD5.h
llvm/lib/Support/MD5.cpp
|
Should this be X < 16?