summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/tools/llvm-exegesis/AArch64
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2018-09-20 13:37:04 +0000
committerGuillaume Chatelet <gchatelet@google.com>2018-09-20 13:37:04 +0000
commit12ca74e5f0b3d88bd5824dd5252ec1bf887b2a2a (patch)
tree2416edfbddc40c8c4b3e127457b510cdbfda327d /llvm/unittests/tools/llvm-exegesis/AArch64
parent3e2de767f621bf277dfdb9337bf87e49ae53d3a8 (diff)
downloadbcm5719-llvm-12ca74e5f0b3d88bd5824dd5252ec1bf887b2a2a.tar.gz
bcm5719-llvm-12ca74e5f0b3d88bd5824dd5252ec1bf887b2a2a.zip
[llvm-exegesis] Fix broken build bots.
Reviewers: javed.absar Subscribers: tschuett, courbet, llvm-commits Differential Revision: https://reviews.llvm.org/D52302 llvm-svn: 342646
Diffstat (limited to 'llvm/unittests/tools/llvm-exegesis/AArch64')
-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