summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineModuleInfo.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-03-25 21:45:14 +0000
committerDan Gohman <gohman@apple.com>2008-03-25 21:45:14 +0000
commitcfbb2f074da2842e42956d3b4c21e91b37f36f06 (patch)
tree189c62a04edbe3e10e114d655bb008c898ed7e20 /include/llvm/CodeGen/MachineModuleInfo.h
parent62c7b8c3713f7178991fac299abcb04e3818ca65 (diff)
downloadllvm-cfbb2f074da2842e42956d3b4c21e91b37f36f06.tar.gz
llvm-cfbb2f074da2842e42956d3b4c21e91b37f36f06.tar.bz2
llvm-cfbb2f074da2842e42956d3b4c21e91b37f36f06.tar.xz
A quick nm audit turned up several fixed tables and objects that were
marked read-write. Use const so that they can be allocated in a read-only segment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48800 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineModuleInfo.h')
-rw-r--r--include/llvm/CodeGen/MachineModuleInfo.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h
index 8d0a34b1f3..2cd4e23781 100644
--- a/include/llvm/CodeGen/MachineModuleInfo.h
+++ b/include/llvm/CodeGen/MachineModuleInfo.h
@@ -265,7 +265,7 @@ public:
/// getAnchorString - Return a string used to label this descriptor's anchor.
///
- static const char *AnchorString;
+ static const char *const AnchorString;
virtual const char *getAnchorString() const;
#ifndef NDEBUG
@@ -664,7 +664,7 @@ public:
/// getAnchorString - Return a string used to label this descriptor's anchor.
///
- static const char *AnchorString;
+ static const char *const AnchorString;
virtual const char *getAnchorString() const;
#ifndef NDEBUG
@@ -701,7 +701,7 @@ public:
/// getAnchorString - Return a string used to label this descriptor's anchor.
///
- static const char *AnchorString;
+ static const char *const AnchorString;
virtual const char *getAnchorString() const;
#ifndef NDEBUG