aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/MachO/ArchitectureSet.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/ArchitectureSet.cpp
parentb2504035901865106680d7edd9d470c031bd7c5c (diff)
downloadllvm-875565e55931704ae51c0011e7fb55b80c6d0c7f.zip
llvm-875565e55931704ae51c0011e7fb55b80c6d0c7f.tar.gz
llvm-875565e55931704ae51c0011e7fb55b80c6d0c7f.tar.bz2
[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/ArchitectureSet.cpp')
-rw-r--r--llvm/lib/TextAPI/MachO/ArchitectureSet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/TextAPI/MachO/ArchitectureSet.cpp b/llvm/lib/TextAPI/MachO/ArchitectureSet.cpp
index 882305c..c589671 100644
--- a/llvm/lib/TextAPI/MachO/ArchitectureSet.cpp
+++ b/llvm/lib/TextAPI/MachO/ArchitectureSet.cpp
@@ -18,7 +18,7 @@ namespace MachO {
ArchitectureSet::ArchitectureSet(const std::vector<Architecture> &Archs)
: ArchitectureSet() {
for (auto Arch : Archs) {
- if (Arch == Architecture::unknown)
+ if (Arch == AK_unknown)
continue;
set(Arch);
}
@@ -51,7 +51,7 @@ ArchitectureSet::operator std::string() const {
ArchitectureSet::operator std::vector<Architecture>() const {
std::vector<Architecture> archs;
for (auto arch : *this) {
- if (arch == Architecture::unknown)
+ if (arch == AK_unknown)
continue;
archs.emplace_back(arch);
}