mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
land David Blaikie's patch to de-constify Type, with a few tweaks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135375 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1009,7 +1009,7 @@ void AsmPrinter::EmitConstantPool() {
|
||||
unsigned NewOffset = (Offset + AlignMask) & ~AlignMask;
|
||||
OutStreamer.EmitFill(NewOffset - Offset, 0/*fillval*/, 0/*addrspace*/);
|
||||
|
||||
const Type *Ty = CPE.getType();
|
||||
Type *Ty = CPE.getType();
|
||||
Offset = NewOffset + TM.getTargetData()->getTypeAllocSize(Ty);
|
||||
OutStreamer.EmitLabel(GetCPISymbol(CPI));
|
||||
|
||||
@@ -1447,7 +1447,7 @@ static const MCExpr *LowerConstant(const Constant *CV, AsmPrinter &AP) {
|
||||
// Support only foldable casts to/from pointers that can be eliminated by
|
||||
// changing the pointer to the appropriately sized integer type.
|
||||
Constant *Op = CE->getOperand(0);
|
||||
const Type *Ty = CE->getType();
|
||||
Type *Ty = CE->getType();
|
||||
|
||||
const MCExpr *OpExpr = LowerConstant(Op, AP);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user