diff options
Diffstat (limited to 'llvm/unittests/tools/llvm-exegesis/PowerPC/TargetTest.cpp')
-rw-r--r-- | llvm/unittests/tools/llvm-exegesis/PowerPC/TargetTest.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/unittests/tools/llvm-exegesis/PowerPC/TargetTest.cpp b/llvm/unittests/tools/llvm-exegesis/PowerPC/TargetTest.cpp index 3f6c5b6d9ea..a1b628fca2c 100644 --- a/llvm/unittests/tools/llvm-exegesis/PowerPC/TargetTest.cpp +++ b/llvm/unittests/tools/llvm-exegesis/PowerPC/TargetTest.cpp @@ -33,10 +33,10 @@ constexpr const char kTriple[] = "powerpc64le-unknown-linux"; class PowerPCTargetTest : public ::testing::Test { protected: PowerPCTargetTest() - : ExegesisTarget_(ExegesisTarget::lookup(llvm::Triple(kTriple))) { + : ExegesisTarget_(ExegesisTarget::lookup(Triple(kTriple))) { EXPECT_THAT(ExegesisTarget_, NotNull()); std::string error; - Target_ = llvm::TargetRegistry::lookupTarget(kTriple, error); + Target_ = TargetRegistry::lookupTarget(kTriple, error); EXPECT_THAT(Target_, NotNull()); } static void SetUpTestCase() { @@ -46,15 +46,14 @@ protected: InitializePowerPCExegesisTarget(); } - const llvm::Target *Target_; + const Target *Target_; const ExegesisTarget *const ExegesisTarget_; }; TEST_F(PowerPCTargetTest, SetRegToConstant) { - const std::unique_ptr<llvm::MCSubtargetInfo> STI( + const std::unique_ptr<MCSubtargetInfo> STI( Target_->createMCSubtargetInfo(kTriple, "generic", "")); - const auto Insts = - ExegesisTarget_->setRegTo(*STI, llvm::PPC::X0, llvm::APInt()); + const auto Insts = ExegesisTarget_->setRegTo(*STI, PPC::X0, APInt()); EXPECT_THAT(Insts, Not(IsEmpty())); } |