mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +00:00
fix isReadOnly predicate to not include data that has to be
writable because of teh dynamic linker. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77122 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -60,9 +60,7 @@ namespace llvm {
|
|||||||
Kind getKind() const { return K; }
|
Kind getKind() const { return K; }
|
||||||
|
|
||||||
bool isReadOnly() const {
|
bool isReadOnly() const {
|
||||||
return K == ROData ||
|
return K == ROData || K == RODataMergeConst || K == RODataMergeStr;
|
||||||
K == DataRelRO || K == DataRelROLocal ||
|
|
||||||
K == RODataMergeConst || K == RODataMergeStr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// isReadOnlyWithDynamicInit - Return true if this data is readonly, but
|
/// isReadOnlyWithDynamicInit - Return true if this data is readonly, but
|
||||||
|
Reference in New Issue
Block a user