[PATCH] D156450: [lld] [NFC] Use llvm::COFF::is64Bit in is64.

Jacek Caban via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 28 05:29:16 PDT 2023


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGca348125ba0d: [lld] [NFC] Use llvm::COFF::is64Bit in is64. (authored by jacek).
Herald added a project: LLVM.

Changed prior to commit:
  https://reviews.llvm.org/D156450?vs=544816&id=545108#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156450/new/

https://reviews.llvm.org/D156450

Files:
  lld/COFF/Config.h


Index: lld/COFF/Config.h
===================================================================
--- lld/COFF/Config.h
+++ lld/COFF/Config.h
@@ -103,9 +103,7 @@
 // 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;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156450.545108.patch
Type: text/x-patch
Size: 507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230728/fa7632cf/attachment.bin>


More information about the llvm-commits mailing list