This is an archive of the discontinued LLVM Phabricator instance.

[libc] Rearrange error and signal tables.
ClosedPublic

Authored by sivachandra on May 24 2023, 12:53 PM.

Details

Summary

This is largely a cosmetic change done with a few goals:

  1. Reduce the conditionals in picking the correct set of tables for the platform.
  2. Avoid exposing, for example Linux errors, when building for non-Linux platforms. This also prevents build failures when Linux errors are not defined on the target non-Linux platform.
  3. Some "_table" suffixes have been removed to avoid repeated occurance of "table" like "tables/linux_error_table.h".

Diff Detail

Event Timeline

sivachandra created this revision.May 24 2023, 12:53 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 24 2023, 12:53 PM
sivachandra requested review of this revision.May 24 2023, 12:53 PM
This revision is now accepted and ready to land.May 24 2023, 1:02 PM
This revision was automatically updated to reflect the committed changes.
libc/src/__support/StringUtil/tables/CMakeLists.txt