fix isReadOnly predicate to not include data that has to be

writable because of teh dynamic linker.

llvm-svn: 77122
This commit is contained in:
Chris Lattner 2009-07-26 04:18:10 +00:00
parent d71c1009c2
commit e24002f37f
1 changed files with 1 additions and 3 deletions

View File

@ -60,9 +60,7 @@ namespace llvm {
Kind getKind() const { return K; }
bool isReadOnly() const {
return K == ROData ||
K == DataRelRO || K == DataRelROLocal ||
K == RODataMergeConst || K == RODataMergeStr;
return K == ROData || K == RODataMergeConst || K == RODataMergeStr;
}
/// isReadOnlyWithDynamicInit - Return true if this data is readonly, but