[PATCH] D35884: Update to use enum classes for various ARM *Kind enums
Florian Hahn via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 27 08:43:20 PDT 2017
fhahn added inline comments.
================
Comment at: lib/Basic/Targets/AArch64.cpp:94
llvm::AArch64::parseCPUArch(Name) !=
- static_cast<unsigned>(llvm::AArch64::ArchKind::AK_INVALID);
+ llvm::AArch64::ArchKind::INVALID;
}
----------------
rovka wrote:
> My eyes might be deceiving me, but did you run clang-format?
Yes, it fits on a single line now, excellent spot :)
================
Comment at: lib/Driver/ToolChains/Darwin.cpp:71
const llvm::Triple::ArchType Arch = getArchTypeForMachOArchName(Str);
- unsigned ArchKind = llvm::ARM::parseArch(Str);
+ llvm::ARM::ArchKind AK = llvm::ARM::parseArch(Str);
T.setArch(Arch);
----------------
rovka wrote:
> Nitpick: The rename seems unnecessary (and anyway the file is inconsistent between Arch, ArchKind and AK).
Agreed.
https://reviews.llvm.org/D35884
More information about the cfe-commits
mailing list