mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
Doh. Must check if GV is constant first.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31252 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7a2ed81f08
commit
71aae62445
@ -205,9 +205,9 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
|
|||||||
O << "\t.globl " << name << "\n";
|
O << "\t.globl " << name << "\n";
|
||||||
// FALL THROUGH
|
// FALL THROUGH
|
||||||
case GlobalValue::InternalLinkage: {
|
case GlobalValue::InternalLinkage: {
|
||||||
if (TAI->getCStringSection()) {
|
if (I->isConstant()) {
|
||||||
const ConstantArray *CVA = dyn_cast<ConstantArray>(C);
|
const ConstantArray *CVA = dyn_cast<ConstantArray>(C);
|
||||||
if (CVA && CVA->isCString()) {
|
if (TAI->getCStringSection() && CVA && CVA->isCString()) {
|
||||||
SwitchToDataSection(TAI->getCStringSection(), I);
|
SwitchToDataSection(TAI->getCStringSection(), I);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user