summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/tools/llvm-exegesis/AArch64/TargetTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/tools/llvm-exegesis/AArch64/TargetTest.cpp')
-rw-r--r--llvm/unittests/tools/llvm-exegesis/AArch64/TargetTest.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/unittests/tools/llvm-exegesis/AArch64/TargetTest.cpp b/llvm/unittests/tools/llvm-exegesis/AArch64/TargetTest.cpp
index b3066df4dfe..1f394ae2efd 100644
--- a/llvm/unittests/tools/llvm-exegesis/AArch64/TargetTest.cpp
+++ b/llvm/unittests/tools/llvm-exegesis/AArch64/TargetTest.cpp
@@ -22,9 +22,7 @@ using testing::IsEmpty;
using testing::Not;
using testing::NotNull;
-static const char kTriple[] = "aarch64-unknown-linux";
-static const char kGenericCpu[] = "generic";
-static const char kNoFeatures[] = "";
+constexpr const char kTriple[] = "aarch64-unknown-linux";
class AArch64TargetTest : public ::testing::Test {
protected:
@@ -35,7 +33,7 @@ protected:
Target_ = llvm::TargetRegistry::lookupTarget(kTriple, error);
EXPECT_THAT(Target_, NotNull());
STI_.reset(
- Target_->createMCSubtargetInfo(kTriple, kGenericCpu, kNoFeatures));
+ Target_->createMCSubtargetInfo(kTriple, "generic", /*no features*/ ""));
}
static void SetUpTestCase() {
OpenPOWER on IntegriCloud