Skip to content

Commit

Permalink
[unittests] Move TargetRegistry test from Support to MC
Browse files Browse the repository at this point in the history
This removes the dependency from SupportTests to all of the LLVM
backends, and makes it link faster.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259705 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
rnk committed Feb 3, 2016
1 parent a58e071 commit 0e6e9b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions unittests/MC/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ add_llvm_unittest(MCTests
Disassembler.cpp
DwarfLineTables.cpp
StringTableBuilderTest.cpp
TargetRegistry.cpp
YAMLTest.cpp
)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===- unittests/Support/TargetRegistry.cpp - -----------------------------===//
//===- unittests/MC/TargetRegistry.cpp ------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
Expand All @@ -7,6 +7,10 @@
//
//===----------------------------------------------------------------------===//

// The target registry code lives in Support, but it relies on linking in all
// LLVM targets. We keep this test with the MC tests, which already do that, to
// keep the SupportTests target small.

#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/TargetSelect.h"
#include "gtest/gtest.h"
Expand Down
2 changes: 0 additions & 2 deletions unittests/Support/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
Support
)

Expand Down Expand Up @@ -39,7 +38,6 @@ add_llvm_unittest(SupportTests
StreamingMemoryObject.cpp
StringPool.cpp
SwapByteOrderTest.cpp
TargetRegistry.cpp
ThreadLocalTest.cpp
ThreadPool.cpp
TimerTest.cpp
Expand Down

0 comments on commit 0e6e9b9

Please sign in to comment.