[llvm] ca32bc4 - [AArch64] Fix build on Windows after 57329ca9463

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 27 09:44:37 PDT 2023


Author: Nico Weber
Date: 2023-07-27T12:44:32-04:00
New Revision: ca32bc44d3a7aa4f705b9c24021b675669222374

URL: https://github.com/llvm/llvm-project/commit/ca32bc44d3a7aa4f705b9c24021b675669222374
DIFF: https://github.com/llvm/llvm-project/commit/ca32bc44d3a7aa4f705b9c24021b675669222374.diff

LOG: [AArch64] Fix build on Windows after 57329ca9463

57329ca9463 added a .inc include within an unnamed namespace,
creating ::(unnamed namespace)::llvm in addition to ::llvm.
This confuses things on Windows.

Added: 
    

Modified: 
    llvm/unittests/Target/AArch64/AArch64SVESchedPseudoTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Target/AArch64/AArch64SVESchedPseudoTest.cpp b/llvm/unittests/Target/AArch64/AArch64SVESchedPseudoTest.cpp
index 247f5c0e7b410a..feb7c1d0085c40 100644
--- a/llvm/unittests/Target/AArch64/AArch64SVESchedPseudoTest.cpp
+++ b/llvm/unittests/Target/AArch64/AArch64SVESchedPseudoTest.cpp
@@ -10,6 +10,9 @@
 
 #include "gtest/gtest.h"
 
+#define GET_COMPUTE_FEATURES
+#include "AArch64GenInstrInfo.inc"
+
 using namespace llvm;
 namespace {
 std::unique_ptr<LLVMTargetMachine> createTargetMachine(const std::string &CPU) {
@@ -34,9 +37,6 @@ std::unique_ptr<AArch64InstrInfo> createInstrInfo(TargetMachine *TM) {
   return std::make_unique<AArch64InstrInfo>(ST);
 }
 
-#define GET_COMPUTE_FEATURES
-#include "AArch64GenInstrInfo.inc"
-
 /// Returns true if the instruction is enabled under a feature that the
 /// CPU supports.
 static bool isInstructionSupportedByCPU(unsigned Opcode,


        


More information about the llvm-commits mailing list