[lld] ca34812 - [lld] [NFC] Use llvm::COFF::is64Bit in is64.
Jacek Caban via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 28 05:29:12 PDT 2023
Author: Jacek Caban
Date: 2023-07-28T14:20:14+02:00
New Revision: ca348125ba0d179a53fd35109d3e1ed01575d1a3
URL: https://github.com/llvm/llvm-project/commit/ca348125ba0d179a53fd35109d3e1ed01575d1a3
DIFF: https://github.com/llvm/llvm-project/commit/ca348125ba0d179a53fd35109d3e1ed01575d1a3.diff
LOG: [lld] [NFC] Use llvm::COFF::is64Bit in is64.
Reviewed By: mstorsjo
Differential Revision: https://reviews.llvm.org/D156450
Added:
Modified:
lld/COFF/Config.h
Removed:
################################################################################
diff --git a/lld/COFF/Config.h b/lld/COFF/Config.h
index 96b49ed3850d49..4ade2c953c73e4 100644
--- a/lld/COFF/Config.h
+++ b/lld/COFF/Config.h
@@ -103,9 +103,7 @@ enum class ICFLevel {
// Global configuration.
struct Configuration {
enum ManifestKind { Default, SideBySide, Embed, No };
- bool is64() const {
- return machine == AMD64 || llvm::COFF::isAnyArm64(machine);
- }
+ bool is64() const { return llvm::COFF::is64Bit(machine); }
llvm::COFF::MachineTypes machine = IMAGE_FILE_MACHINE_UNKNOWN;
size_t wordsize;
More information about the llvm-commits
mailing list