mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
stop using DebugLoc::getUnknownLoc()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100215 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c7f3ace20c
commit
a4f2bb08de
@ -395,7 +395,7 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const MachineMemOperand &MMO) {
|
||||
/// TID NULL and no operands.
|
||||
MachineInstr::MachineInstr()
|
||||
: TID(0), NumImplicitOps(0), AsmPrinterFlags(0), MemRefs(0), MemRefsEnd(0),
|
||||
Parent(0), debugLoc(DebugLoc::getUnknownLoc()) {
|
||||
Parent(0) {
|
||||
// Make sure that we get added to a machine basicblock
|
||||
LeakDetector::addGarbageObject(this);
|
||||
}
|
||||
@ -415,8 +415,7 @@ void MachineInstr::addImplicitDefUseOperands() {
|
||||
/// instructions with variable number of operands).
|
||||
MachineInstr::MachineInstr(const TargetInstrDesc &tid, bool NoImp)
|
||||
: TID(&tid), NumImplicitOps(0), AsmPrinterFlags(0),
|
||||
MemRefs(0), MemRefsEnd(0), Parent(0),
|
||||
debugLoc(DebugLoc::getUnknownLoc()) {
|
||||
MemRefs(0), MemRefsEnd(0), Parent(0) {
|
||||
if (!NoImp && TID->getImplicitDefs())
|
||||
for (const unsigned *ImpDefs = TID->getImplicitDefs(); *ImpDefs; ++ImpDefs)
|
||||
NumImplicitOps++;
|
||||
@ -454,8 +453,7 @@ MachineInstr::MachineInstr(const TargetInstrDesc &tid, const DebugLoc dl,
|
||||
///
|
||||
MachineInstr::MachineInstr(MachineBasicBlock *MBB, const TargetInstrDesc &tid)
|
||||
: TID(&tid), NumImplicitOps(0), AsmPrinterFlags(0),
|
||||
MemRefs(0), MemRefsEnd(0), Parent(0),
|
||||
debugLoc(DebugLoc::getUnknownLoc()) {
|
||||
MemRefs(0), MemRefsEnd(0), Parent(0) {
|
||||
assert(MBB && "Cannot use inserting ctor with null basic block!");
|
||||
if (TID->ImplicitDefs)
|
||||
for (const unsigned *ImpDefs = TID->getImplicitDefs(); *ImpDefs; ++ImpDefs)
|
||||
|
@ -125,7 +125,7 @@ MachineInstr *InsertNewDef(unsigned Opcode,
|
||||
const TargetRegisterClass *RC,
|
||||
MachineRegisterInfo *MRI, const TargetInstrInfo *TII) {
|
||||
unsigned NewVR = MRI->createVirtualRegister(RC);
|
||||
return BuildMI(*BB, I, DebugLoc::getUnknownLoc(), TII->get(Opcode), NewVR);
|
||||
return BuildMI(*BB, I, DebugLoc(), TII->get(Opcode), NewVR);
|
||||
}
|
||||
|
||||
/// GetValueInMiddleOfBlock - Construct SSA form, materializing a value that
|
||||
|
@ -794,8 +794,7 @@ unsigned SelectionDAG::getEVTAlignment(EVT VT) const {
|
||||
// EntryNode could meaningfully have debug info if we can find it...
|
||||
SelectionDAG::SelectionDAG(TargetLowering &tli, FunctionLoweringInfo &fli)
|
||||
: TLI(tli), FLI(fli), DW(0),
|
||||
EntryNode(ISD::EntryToken, DebugLoc::getUnknownLoc(),
|
||||
getVTList(MVT::Other)),
|
||||
EntryNode(ISD::EntryToken, DebugLoc(), getVTList(MVT::Other)),
|
||||
Root(getEntryNode()), Ordering(0) {
|
||||
AllNodes.push_back(&EntryNode);
|
||||
Ordering = new SDNodeOrdering();
|
||||
@ -919,8 +918,7 @@ SDValue SelectionDAG::getConstant(const ConstantInt &Val, EVT VT, bool isT) {
|
||||
if (VT.isVector()) {
|
||||
SmallVector<SDValue, 8> Ops;
|
||||
Ops.assign(VT.getVectorNumElements(), Result);
|
||||
Result = getNode(ISD::BUILD_VECTOR, DebugLoc::getUnknownLoc(),
|
||||
VT, &Ops[0], Ops.size());
|
||||
Result = getNode(ISD::BUILD_VECTOR, DebugLoc(), VT, &Ops[0], Ops.size());
|
||||
}
|
||||
return Result;
|
||||
}
|
||||
@ -963,8 +961,7 @@ SDValue SelectionDAG::getConstantFP(const ConstantFP& V, EVT VT, bool isTarget){
|
||||
SmallVector<SDValue, 8> Ops;
|
||||
Ops.assign(VT.getVectorNumElements(), Result);
|
||||
// FIXME DebugLoc info might be appropriate here
|
||||
Result = getNode(ISD::BUILD_VECTOR, DebugLoc::getUnknownLoc(),
|
||||
VT, &Ops[0], Ops.size());
|
||||
Result = getNode(ISD::BUILD_VECTOR, DebugLoc(), VT, &Ops[0], Ops.size());
|
||||
}
|
||||
return Result;
|
||||
}
|
||||
@ -5335,8 +5332,7 @@ HandleSDNode::~HandleSDNode() {
|
||||
|
||||
GlobalAddressSDNode::GlobalAddressSDNode(unsigned Opc, const GlobalValue *GA,
|
||||
EVT VT, int64_t o, unsigned char TF)
|
||||
: SDNode(Opc, DebugLoc::getUnknownLoc(), getSDVTList(VT)),
|
||||
Offset(o), TargetFlags(TF) {
|
||||
: SDNode(Opc, DebugLoc(), getSDVTList(VT)), Offset(o), TargetFlags(TF) {
|
||||
TheGlobal = const_cast<GlobalValue*>(GA);
|
||||
}
|
||||
|
||||
|
@ -546,7 +546,7 @@ void SelectionDAGBuilder::clear() {
|
||||
PendingExports.clear();
|
||||
EdgeMapping.clear();
|
||||
DAG.clear();
|
||||
CurDebugLoc = DebugLoc::getUnknownLoc();
|
||||
CurDebugLoc = DebugLoc();
|
||||
HasTailCall = false;
|
||||
}
|
||||
|
||||
|
@ -306,10 +306,8 @@ public:
|
||||
SelectionDAGBuilder(SelectionDAG &dag, TargetLowering &tli,
|
||||
FunctionLoweringInfo &funcinfo,
|
||||
CodeGenOpt::Level ol)
|
||||
: CurDebugLoc(DebugLoc::getUnknownLoc()), SDNodeOrder(0),
|
||||
TLI(tli), DAG(dag), FuncInfo(funcinfo), OptLevel(ol),
|
||||
HasTailCall(false),
|
||||
Context(dag.getContext()) {
|
||||
: SDNodeOrder(0), TLI(tli), DAG(dag), FuncInfo(funcinfo), OptLevel(ol),
|
||||
HasTailCall(false), Context(dag.getContext()) {
|
||||
}
|
||||
|
||||
void init(GCFunctionInfo *gfi, AliasAnalysis &aa);
|
||||
|
@ -384,9 +384,9 @@ static void SetDebugLoc(Instruction *I, SelectionDAGBuilder *SDB,
|
||||
|
||||
/// ResetDebugLoc - Set MF's and SDB's DebugLocs to Unknown.
|
||||
static void ResetDebugLoc(SelectionDAGBuilder *SDB, FastISel *FastIS) {
|
||||
SDB->setCurDebugLoc(DebugLoc::getUnknownLoc());
|
||||
SDB->setCurDebugLoc(DebugLoc());
|
||||
if (FastIS)
|
||||
FastIS->setCurDebugLoc(DebugLoc::getUnknownLoc());
|
||||
FastIS->setCurDebugLoc(DebugLoc());
|
||||
}
|
||||
|
||||
void SelectionDAGISel::SelectBasicBlock(BasicBlock *LLVMBB,
|
||||
|
Loading…
x
Reference in New Issue
Block a user