From 875565e55931704ae51c0011e7fb55b80c6d0c7f Mon Sep 17 00:00:00 2001 From: Juergen Ributzka Date: Thu, 4 Apr 2019 22:56:50 +0000 Subject: [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/lib/TextAPI/MachO/TextStubCommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/TextAPI/MachO/TextStubCommon.cpp') 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::mustQuote(StringRef) { void ScalarBitSetTraits::bitset(IO &IO, ArchitectureSet &Archs) { #define ARCHINFO(arch, type, subtype) \ - IO.bitSetCase(Archs, #arch, 1U << static_cast(Architecture::arch)); + IO.bitSetCase(Archs, #arch, 1U << static_cast(AK_##arch)); #include "llvm/TextAPI/MachO/Architecture.def" #undef ARCHINFO } -- cgit v1.2.3