mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 20:12:56 +02:00
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:
parent
f67024bb1c
commit
809a525ffa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user