mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
trailing whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113768 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3ec73169a3
commit
fc16a8950c
@ -34,7 +34,7 @@ const ARMSubtarget &ARMMCInstLower::getSubtarget() const {
|
|||||||
|
|
||||||
MachineModuleInfoMachO &ARMMCInstLower::getMachOMMI() const {
|
MachineModuleInfoMachO &ARMMCInstLower::getMachOMMI() const {
|
||||||
assert(getSubtarget().isTargetDarwin() &&"Can only get MachO info on darwin");
|
assert(getSubtarget().isTargetDarwin() &&"Can only get MachO info on darwin");
|
||||||
return AsmPrinter.MMI->getObjFileInfo<MachineModuleInfoMachO>();
|
return AsmPrinter.MMI->getObjFileInfo<MachineModuleInfoMachO>();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ GetGlobalAddressSymbol(const MachineOperand &MO) const {
|
|||||||
default: assert(0 && "Unknown target flag on GV operand");
|
default: assert(0 && "Unknown target flag on GV operand");
|
||||||
case 0: break;
|
case 0: break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Printer.Mang->getSymbol(MO.getGlobal());
|
return Printer.Mang->getSymbol(MO.getGlobal());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ GetExternalSymbolSymbol(const MachineOperand &MO) const {
|
|||||||
default: assert(0 && "Unknown target flag on GV operand");
|
default: assert(0 && "Unknown target flag on GV operand");
|
||||||
case 0: break;
|
case 0: break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Printer.GetExternalSymbolSymbol(MO.getSymbolName());
|
return Printer.GetExternalSymbolSymbol(MO.getSymbolName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -67,13 +67,13 @@ GetJumpTableSymbol(const MachineOperand &MO) const {
|
|||||||
SmallString<256> Name;
|
SmallString<256> Name;
|
||||||
raw_svector_ostream(Name) << Printer.MAI->getPrivateGlobalPrefix() << "JTI"
|
raw_svector_ostream(Name) << Printer.MAI->getPrivateGlobalPrefix() << "JTI"
|
||||||
<< Printer.getFunctionNumber() << '_' << MO.getIndex();
|
<< Printer.getFunctionNumber() << '_' << MO.getIndex();
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
switch (MO.getTargetFlags()) {
|
switch (MO.getTargetFlags()) {
|
||||||
default: llvm_unreachable("Unknown target flag on GV operand");
|
default: llvm_unreachable("Unknown target flag on GV operand");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Create a symbol for the name.
|
// Create a symbol for the name.
|
||||||
return Ctx.GetOrCreateSymbol(Name.str());
|
return Ctx.GetOrCreateSymbol(Name.str());
|
||||||
}
|
}
|
||||||
@ -83,29 +83,29 @@ GetConstantPoolIndexSymbol(const MachineOperand &MO) const {
|
|||||||
SmallString<256> Name;
|
SmallString<256> Name;
|
||||||
raw_svector_ostream(Name) << Printer.MAI->getPrivateGlobalPrefix() << "CPI"
|
raw_svector_ostream(Name) << Printer.MAI->getPrivateGlobalPrefix() << "CPI"
|
||||||
<< Printer.getFunctionNumber() << '_' << MO.getIndex();
|
<< Printer.getFunctionNumber() << '_' << MO.getIndex();
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
switch (MO.getTargetFlags()) {
|
switch (MO.getTargetFlags()) {
|
||||||
default: llvm_unreachable("Unknown target flag on GV operand");
|
default: llvm_unreachable("Unknown target flag on GV operand");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Create a symbol for the name.
|
// Create a symbol for the name.
|
||||||
return Ctx.GetOrCreateSymbol(Name.str());
|
return Ctx.GetOrCreateSymbol(Name.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
MCOperand ARMMCInstLower::
|
MCOperand ARMMCInstLower::
|
||||||
LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const {
|
LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const {
|
||||||
// FIXME: We would like an efficient form for this, so we don't have to do a
|
// FIXME: We would like an efficient form for this, so we don't have to do a
|
||||||
// lot of extra uniquing.
|
// lot of extra uniquing.
|
||||||
const MCExpr *Expr = MCSymbolRefExpr::Create(Sym, Ctx);
|
const MCExpr *Expr = MCSymbolRefExpr::Create(Sym, Ctx);
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
switch (MO.getTargetFlags()) {
|
switch (MO.getTargetFlags()) {
|
||||||
default: llvm_unreachable("Unknown target flag on GV operand");
|
default: llvm_unreachable("Unknown target flag on GV operand");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!MO.isJTI() && MO.getOffset())
|
if (!MO.isJTI() && MO.getOffset())
|
||||||
Expr = MCBinaryExpr::CreateAdd(Expr,
|
Expr = MCBinaryExpr::CreateAdd(Expr,
|
||||||
MCConstantExpr::Create(MO.getOffset(), Ctx),
|
MCConstantExpr::Create(MO.getOffset(), Ctx),
|
||||||
@ -116,10 +116,10 @@ LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const {
|
|||||||
|
|
||||||
void ARMMCInstLower::Lower(const MachineInstr *MI, MCInst &OutMI) const {
|
void ARMMCInstLower::Lower(const MachineInstr *MI, MCInst &OutMI) const {
|
||||||
OutMI.setOpcode(MI->getOpcode());
|
OutMI.setOpcode(MI->getOpcode());
|
||||||
|
|
||||||
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
||||||
const MachineOperand &MO = MI->getOperand(i);
|
const MachineOperand &MO = MI->getOperand(i);
|
||||||
|
|
||||||
MCOperand MCOp;
|
MCOperand MCOp;
|
||||||
switch (MO.getType()) {
|
switch (MO.getType()) {
|
||||||
default:
|
default:
|
||||||
@ -155,8 +155,8 @@ void ARMMCInstLower::Lower(const MachineInstr *MI, MCInst &OutMI) const {
|
|||||||
MO.getBlockAddress()));
|
MO.getBlockAddress()));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
OutMI.addOperand(MCOp);
|
OutMI.addOperand(MCOp);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ namespace llvm {
|
|||||||
class MachineOperand;
|
class MachineOperand;
|
||||||
class Mangler;
|
class Mangler;
|
||||||
//class ARMSubtarget;
|
//class ARMSubtarget;
|
||||||
|
|
||||||
/// ARMMCInstLower - This class is used to lower an MachineInstr into an MCInst.
|
/// ARMMCInstLower - This class is used to lower an MachineInstr into an MCInst.
|
||||||
class LLVM_LIBRARY_VISIBILITY ARMMCInstLower {
|
class LLVM_LIBRARY_VISIBILITY ARMMCInstLower {
|
||||||
MCContext &Ctx;
|
MCContext &Ctx;
|
||||||
@ -35,7 +35,7 @@ class LLVM_LIBRARY_VISIBILITY ARMMCInstLower {
|
|||||||
public:
|
public:
|
||||||
ARMMCInstLower(MCContext &ctx, Mangler &mang, AsmPrinter &printer)
|
ARMMCInstLower(MCContext &ctx, Mangler &mang, AsmPrinter &printer)
|
||||||
: Ctx(ctx), Mang(mang), Printer(printer) {}
|
: Ctx(ctx), Mang(mang), Printer(printer) {}
|
||||||
|
|
||||||
void Lower(const MachineInstr *MI, MCInst &OutMI) const;
|
void Lower(const MachineInstr *MI, MCInst &OutMI) const;
|
||||||
|
|
||||||
//MCSymbol *GetPICBaseSymbol() const;
|
//MCSymbol *GetPICBaseSymbol() const;
|
||||||
@ -44,7 +44,7 @@ public:
|
|||||||
MCSymbol *GetJumpTableSymbol(const MachineOperand &MO) const;
|
MCSymbol *GetJumpTableSymbol(const MachineOperand &MO) const;
|
||||||
MCSymbol *GetConstantPoolIndexSymbol(const MachineOperand &MO) const;
|
MCSymbol *GetConstantPoolIndexSymbol(const MachineOperand &MO) const;
|
||||||
MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;
|
MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
private:
|
private:
|
||||||
MachineModuleInfoMachO &getMachOMMI() const;
|
MachineModuleInfoMachO &getMachOMMI() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user