[all-commits] [llvm/llvm-project] 83797c: [ADT] Use a lookup table in hexdigit() and call th...

Hans via All-commits all-commits at lists.llvm.org
Tue Jan 11 02:32:48 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 83797c03d2ee0786259d261e6716836e60520a05
      https://github.com/llvm/llvm-project/commit/83797c03d2ee0786259d261e6716836e60520a05
  Author: Hans Wennborg <hans at chromium.org>
  Date:   2022-01-11 (Tue, 11 Jan 2022)

  Changed paths:
    M llvm/include/llvm/ADT/StringExtras.h

  Log Message:
  -----------
  [ADT] Use a lookup table in hexdigit() and call that from toHex()

A lookup table, which toHex() was using, seems like the better approach.
Having two implementations is redundant, so put the lookup table in
hexdigit() and make toHex() call that.

Differential revision: https://reviews.llvm.org/D116960




More information about the All-commits mailing list