mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
Initializers are not const even if the GV is.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@805 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
164cb69e04
commit
cbf0c2c3e3
@ -35,9 +35,9 @@ public:
|
|||||||
// an initializer is specified.
|
// an initializer is specified.
|
||||||
//
|
//
|
||||||
inline bool hasInitializer() const { return !Operands.empty(); }
|
inline bool hasInitializer() const { return !Operands.empty(); }
|
||||||
inline const ConstPoolVal *getInitializer() const {
|
inline ConstPoolVal *getInitializer() const {
|
||||||
assert(hasInitializer() && "GV doesn't have initializer!");
|
assert(hasInitializer() && "GV doesn't have initializer!");
|
||||||
return (const ConstPoolVal*)Operands[0].get();
|
return (ConstPoolVal*)Operands[0].get();
|
||||||
}
|
}
|
||||||
inline ConstPoolVal *getInitializer() {
|
inline ConstPoolVal *getInitializer() {
|
||||||
assert(hasInitializer() && "GV doesn't have initializer!");
|
assert(hasInitializer() && "GV doesn't have initializer!");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user