mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
[bpf] fix build
fix the build and remove unused variable warnings in Release mode. Patch by Brenden Blanco. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234349 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1106660066
commit
68e6b651a1
@ -64,7 +64,7 @@ public:
|
|||||||
raw_string_ostream OS(Str);
|
raw_string_ostream OS(Str);
|
||||||
|
|
||||||
if (DLoc) {
|
if (DLoc) {
|
||||||
DILocation DIL(DLoc.getAsMDNode());
|
DILocation DIL(DLoc.get());
|
||||||
StringRef Filename = DIL.getFilename();
|
StringRef Filename = DIL.getFilename();
|
||||||
unsigned Line = DIL.getLineNumber();
|
unsigned Line = DIL.getLineNumber();
|
||||||
unsigned Column = DIL.getColumnNumber();
|
unsigned Column = DIL.getColumnNumber();
|
||||||
@ -537,12 +537,10 @@ SDValue BPFTargetLowering::LowerGlobalAddress(SDValue Op,
|
|||||||
MachineBasicBlock *
|
MachineBasicBlock *
|
||||||
BPFTargetLowering::EmitInstrWithCustomInserter(MachineInstr *MI,
|
BPFTargetLowering::EmitInstrWithCustomInserter(MachineInstr *MI,
|
||||||
MachineBasicBlock *BB) const {
|
MachineBasicBlock *BB) const {
|
||||||
unsigned Opc = MI->getOpcode();
|
|
||||||
|
|
||||||
const TargetInstrInfo &TII = *BB->getParent()->getSubtarget().getInstrInfo();
|
const TargetInstrInfo &TII = *BB->getParent()->getSubtarget().getInstrInfo();
|
||||||
DebugLoc DL = MI->getDebugLoc();
|
DebugLoc DL = MI->getDebugLoc();
|
||||||
|
|
||||||
assert(Opc == BPF::Select && "Unexpected instr type to insert");
|
assert(MI->getOpcode() == BPF::Select && "Unexpected instr type to insert");
|
||||||
|
|
||||||
// To "insert" a SELECT instruction, we actually have to insert the diamond
|
// To "insert" a SELECT instruction, we actually have to insert the diamond
|
||||||
// control-flow pattern. The incoming instruction knows the destination vreg
|
// control-flow pattern. The incoming instruction knows the destination vreg
|
||||||
|
@ -76,9 +76,8 @@ unsigned BPFMCCodeEmitter::getMachineOpValue(const MCInst &MI,
|
|||||||
assert(MO.isExpr());
|
assert(MO.isExpr());
|
||||||
|
|
||||||
const MCExpr *Expr = MO.getExpr();
|
const MCExpr *Expr = MO.getExpr();
|
||||||
MCExpr::ExprKind Kind = Expr->getKind();
|
|
||||||
|
|
||||||
assert(Kind == MCExpr::SymbolRef);
|
assert(Expr->getKind() == MCExpr::SymbolRef);
|
||||||
|
|
||||||
if (MI.getOpcode() == BPF::JAL)
|
if (MI.getOpcode() == BPF::JAL)
|
||||||
// func call name
|
// func call name
|
||||||
|
Loading…
Reference in New Issue
Block a user