summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorThomas Preud'homme <thomasp@graphcore.ai>2019-09-27 09:39:13 +0000
committerThomas Preud'homme <thomasp@graphcore.ai>2019-09-27 09:39:13 +0000
commitb8cf059faccb794c47be6775f99457992ac6b2da (patch)
tree75ca098660e41768ea5b24c654575edec43fd659 /llvm/tools
parent2774457b2a5c5558df8d68979632a07ea6ac9cb8 (diff)
downloadbcm5719-llvm-b8cf059faccb794c47be6775f99457992ac6b2da.tar.gz
bcm5719-llvm-b8cf059faccb794c47be6775f99457992ac6b2da.zip
[sancov][NFC] Make filename Regexes "const"
Summary: The const-correctness of match() was fixed in rL372764, which allows such static Regex objects to be marked const. Reviewers: thopre Reviewed By: thopre Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68091 llvm-svn: 373058
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/sancov/sancov.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/sancov/sancov.cpp b/llvm/tools/sancov/sancov.cpp
index 9f5de69ee55..9645183c2bc 100644
--- a/llvm/tools/sancov/sancov.cpp
+++ b/llvm/tools/sancov/sancov.cpp
@@ -123,8 +123,8 @@ static const uint32_t BinCoverageMagic = 0xC0BFFFFF;
static const uint32_t Bitness32 = 0xFFFFFF32;
static const uint32_t Bitness64 = 0xFFFFFF64;
-static Regex SancovFileRegex("(.*)\\.[0-9]+\\.sancov");
-static Regex SymcovFileRegex(".*\\.symcov");
+static const Regex SancovFileRegex("(.*)\\.[0-9]+\\.sancov");
+static const Regex SymcovFileRegex(".*\\.symcov");
// --------- MAIN DATASTRUCTURES ----------
OpenPOWER on IntegriCloud