summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TextAPI/MachO/TextStubCommon.cpp
diff options
context:
space:
mode:
authorJuergen Ributzka <juergen@ributzka.de>2019-04-04 22:56:50 +0000
committerJuergen Ributzka <juergen@ributzka.de>2019-04-04 22:56:50 +0000
commit875565e55931704ae51c0011e7fb55b80c6d0c7f (patch)
tree2f37d256b6726a15ed93827224fc572529f98415 /llvm/lib/TextAPI/MachO/TextStubCommon.cpp
parentb2504035901865106680d7edd9d470c031bd7c5c (diff)
downloadbcm5719-llvm-875565e55931704ae51c0011e7fb55b80c6d0c7f.tar.gz
bcm5719-llvm-875565e55931704ae51c0011e7fb55b80c6d0c7f.zip
[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
Diffstat (limited to 'llvm/lib/TextAPI/MachO/TextStubCommon.cpp')
-rw-r--r--llvm/lib/TextAPI/MachO/TextStubCommon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/TextAPI/MachO/TextStubCommon.cpp b/llvm/lib/TextAPI/MachO/TextStubCommon.cpp
index 805a9000512..00382cd2457 100644
--- a/llvm/lib/TextAPI/MachO/TextStubCommon.cpp
+++ b/llvm/lib/TextAPI/MachO/TextStubCommon.cpp
@@ -85,7 +85,7 @@ QuotingType ScalarTraits<PlatformKind>::mustQuote(StringRef) {
void ScalarBitSetTraits<ArchitectureSet>::bitset(IO &IO,
ArchitectureSet &Archs) {
#define ARCHINFO(arch, type, subtype) \
- IO.bitSetCase(Archs, #arch, 1U << static_cast<int>(Architecture::arch));
+ IO.bitSetCase(Archs, #arch, 1U << static_cast<int>(AK_##arch));
#include "llvm/TextAPI/MachO/Architecture.def"
#undef ARCHINFO
}
OpenPOWER on IntegriCloud