mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
Dang, we were losing the Constant bit on globals. Fix this
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@885 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0eafc31684
commit
b2c823d2be
@ -123,7 +123,7 @@ void BytecodeWriter::outputModuleInfoBlock(const Module *M) {
|
||||
|
||||
// Fields: bit0 = isConstant, bit1 = hasInitializer, bit2+ = slot#
|
||||
unsigned oSlot = ((unsigned)Slot << 2) | (GV->hasInitializer() << 1) |
|
||||
isa<ConstPoolVal>(GV);
|
||||
GV->isConstant();
|
||||
output_vbr(oSlot, Out);
|
||||
|
||||
// If we have an initializer, output it now.
|
||||
|
Loading…
Reference in New Issue
Block a user