[TextAPI] Prefix all architecture enums to fix the build on i386.
authorJuergen Ributzka <juergen@ributzka.de>
Thu, 4 Apr 2019 22:56:50 +0000 (22:56 +0000)
committerJuergen Ributzka <juergen@ributzka.de>
Thu, 4 Apr 2019 22:56:50 +0000 (22:56 +0000)
commit875565e55931704ae51c0011e7fb55b80c6d0c7f
tree2f37d256b6726a15ed93827224fc572529f98415
parentb2504035901865106680d7edd9d470c031bd7c5c
[TextAPI] Prefix all architecture enums to fix the build on i386.

Summary: This changes the Architecture enum to use a prefix (AK_) to prevent the
preprocessor from replacing i386 with 1 when building llvm/clang for i386.

Reviewers: steven_wu, lhames, mstorsjo

Reviewed By: mstorsjo

Subscribers: hiraditya, jkorous, dexonsmith, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D60241

llvm-svn: 357733
llvm/include/llvm/TextAPI/MachO/Architecture.h
llvm/include/llvm/TextAPI/MachO/ArchitectureSet.h
llvm/lib/TextAPI/MachO/Architecture.cpp
llvm/lib/TextAPI/MachO/ArchitectureSet.cpp
llvm/lib/TextAPI/MachO/TextStubCommon.cpp
llvm/unittests/TextAPI/TextStubV1Tests.cpp
llvm/unittests/TextAPI/TextStubV2Tests.cpp