diff options
| author | Craig Topper <craig.topper@intel.com> | 2017-09-16 16:44:39 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2017-09-16 16:44:39 +0000 |
| commit | 19a0a3ab685ddb8266df71557902cce870f10145 (patch) | |
| tree | 32dd4f94056078cdc6929f53c8eb6f108fd0b561 /llvm/tools/llvm-readobj/Error.h | |
| parent | f734daf36db138ae5f9105ed8db1c88c50222d7f (diff) | |
| download | bcm5719-llvm-19a0a3ab685ddb8266df71557902cce870f10145.tar.gz bcm5719-llvm-19a0a3ab685ddb8266df71557902cce870f10145.zip | |
[X86] Remove unnecessary extra encodings from the CPU name enum in clang
Summary:
For a lot of older CPUs we have a 1:1 mapping between CPU name and enum name. But many of them are effectively aliases of each other and as a result are always repeated together at every usage
This patch removes most of the duplication. It also uses StringSwitch::Cases to make the many to one mapping in the StringSwitch more obvious.
Reviewers: RKSimon, spatel, zvi, igorb
Reviewed By: RKSimon
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D37938
llvm-svn: 313462
Diffstat (limited to 'llvm/tools/llvm-readobj/Error.h')
0 files changed, 0 insertions, 0 deletions

