summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-07-17 03:54:53 +0000
committerCraig Topper <craig.topper@gmail.com>2013-07-17 03:54:53 +0000
commit24048c9440773f1e8a22b9409720eb08b721d8af (patch)
tree3498443516940fde865278c4db039bc7cdb264af
parent1c4d667ca531f1a010504721d83bd601cb535d19 (diff)
downloadbcm5719-llvm-24048c9440773f1e8a22b9409720eb08b721d8af.tar.gz
bcm5719-llvm-24048c9440773f1e8a22b9409720eb08b721d8af.zip
Mark a method 'const' and another 'static'.
llvm-svn: 186485
-rw-r--r--llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
index 3c6e0002fd1..4c2681f0f36 100644
--- a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
@@ -171,7 +171,7 @@ namespace {
// Returns the length measured in 4-byte blocks that will be used to
// represent this string in a GCOV file
- unsigned lengthOfGCOVString(StringRef s) {
+ static unsigned lengthOfGCOVString(StringRef s) {
// A GCOV string is a length, followed by a NUL, then between 0 and 3 NULs
// padding out to the next 4-byte word. The length is measured in 4-byte
// words including padding, not bytes of actual string.
@@ -208,7 +208,7 @@ namespace {
Lines.push_back(Line);
}
- uint32_t length() {
+ uint32_t length() const {
// Here 2 = 1 for string length + 1 for '0' id#.
return lengthOfGCOVString(Filename) + 2 + Lines.size();
}
OpenPOWER on IntegriCloud