diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2019-08-26 20:47:56 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2019-08-26 20:47:56 +0000 |
commit | 57effbdadc0b382db4ef86addcfd03a64c9eda0a (patch) | |
tree | 146f2b3a5ba8b98e50b61fcfb7d96de5595034ee /llvm/unittests/ProfileData | |
parent | 3c5bd65154acbe052c9be1a22bc9457fdc2836f6 (diff) | |
download | bcm5719-llvm-57effbdadc0b382db4ef86addcfd03a64c9eda0a.tar.gz bcm5719-llvm-57effbdadc0b382db4ef86addcfd03a64c9eda0a.zip |
[ADT] Make StringRef(const char*) constexpr
This should let us get rid of StringLiteral in the long term and avoid
chasing accidental StringRef globals once and for all.
This requires C++14, I godbolted it on every compiler I know we support
so I hope there won't be much fallout.
llvm-svn: 369961
Diffstat (limited to 'llvm/unittests/ProfileData')
-rw-r--r-- | llvm/unittests/ProfileData/SampleProfTest.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/unittests/ProfileData/SampleProfTest.cpp b/llvm/unittests/ProfileData/SampleProfTest.cpp index a28a1d8a1aa..ebf66b22c5b 100644 --- a/llvm/unittests/ProfileData/SampleProfTest.cpp +++ b/llvm/unittests/ProfileData/SampleProfTest.cpp @@ -305,7 +305,6 @@ TEST_F(SampleProfTest, sample_overflow_saturation) { const uint64_t Max = std::numeric_limits<uint64_t>::max(); sampleprof_error Result; - StringRef FooName("_Z3fooi"); FunctionSamples FooSamples; Result = FooSamples.addTotalSamples(1); ASSERT_EQ(Result, sampleprof_error::success); |