set(LLVM_LINK_COMPONENTS
  ${LLVM_TARGETS_TO_BUILD}
  AsmParser
  AsmPrinter
  CodeGen
  Core
  MC
  SelectionDAG
  Support
  Target
  )

add_llvm_unittest(CodeGenTests
  AArch64SelectionDAGTest.cpp
  DIEHashTest.cpp
  LowLevelTypeTest.cpp
  MachineInstrBundleIteratorTest.cpp
  MachineInstrTest.cpp
  MachineOperandTest.cpp
  ScalableVectorMVTsTest.cpp
  )

add_subdirectory(GlobalISel)

set(LLVM_LINK_COMPONENTS
  ${LLVM_TARGETS_TO_BUILD}
  Analysis
  AsmParser
  AsmPrinter
  CodeGen
  Core
  MC
  SelectionDAG
  Support
  Target
  )

add_llvm_unittest(CodeGenTests
  AArch64SelectionDAGTest.cpp
  DIEHashTest.cpp
  LowLevelTypeTest.cpp
  MachineInstrBundleIteratorTest.cpp
  MachineInstrTest.cpp
  MachineOperandTest.cpp
  ScalableVectorMVTsTest.cpp
  )

add_subdirectory(GlobalISel)

Fix test added in rL341380: AArch64SelectionDAGTest needs to link against Analysis lib.
[Codegen] Fix test added in rL341380: AArch64SelectionDAGTest needs to link against Analysis lib.

git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@341397 91177308-0d34-0410-b5e6-96231b3b80d8
