diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-07-17 03:43:10 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-07-17 03:43:10 +0000 |
commit | 1c4d667ca531f1a010504721d83bd601cb535d19 (patch) | |
tree | c1bbcb3762f0b6815a8f3cc241995e294a6011f4 /llvm/lib | |
parent | b6fea4c618241650ae4539128087b3d29ea30d6b (diff) | |
download | bcm5719-llvm-1c4d667ca531f1a010504721d83bd601cb535d19.tar.gz bcm5719-llvm-1c4d667ca531f1a010504721d83bd601cb535d19.zip |
Make a few more static string pointers constant.
llvm-svn: 186484
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp index 408c61a4a28..3c6e0002fd1 100644 --- a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp @@ -154,10 +154,10 @@ static std::string getFunctionName(DISubprogram SP) { namespace { class GCOVRecord { protected: - static const char *LinesTag; - static const char *FunctionTag; - static const char *BlockTag; - static const char *EdgeTag; + static const char *const LinesTag; + static const char *const FunctionTag; + static const char *const BlockTag; + static const char *const EdgeTag; GCOVRecord() {} @@ -191,10 +191,10 @@ namespace { raw_ostream *os; }; - const char *GCOVRecord::LinesTag = "\0\0\x45\x01"; - const char *GCOVRecord::FunctionTag = "\0\0\0\1"; - const char *GCOVRecord::BlockTag = "\0\0\x41\x01"; - const char *GCOVRecord::EdgeTag = "\0\0\x43\x01"; + const char *const GCOVRecord::LinesTag = "\0\0\x45\x01"; + const char *const GCOVRecord::FunctionTag = "\0\0\0\1"; + const char *const GCOVRecord::BlockTag = "\0\0\x41\x01"; + const char *const GCOVRecord::EdgeTag = "\0\0\x43\x01"; class GCOVFunction; class GCOVBlock; |