mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
More coverity fixes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28266 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
03ea4c8326
commit
98d0d7d6f0
@ -197,7 +197,6 @@ MachineInstr* X86RegisterInfo::foldMemoryOperand(MachineInstr* MI,
|
|||||||
|
|
||||||
/// FIXME: This should obviously be autogenerated by tablegen when patterns
|
/// FIXME: This should obviously be autogenerated by tablegen when patterns
|
||||||
/// are available!
|
/// are available!
|
||||||
MachineBasicBlock& MBB = *MI->getParent();
|
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
switch(MI->getOpcode()) {
|
switch(MI->getOpcode()) {
|
||||||
case X86::XCHG8rr: return MakeMRInst(X86::XCHG8mr ,FrameIndex, MI);
|
case X86::XCHG8rr: return MakeMRInst(X86::XCHG8mr ,FrameIndex, MI);
|
||||||
|
@ -40,7 +40,9 @@ public:
|
|||||||
virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
|
virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
|
||||||
virtual TargetJITInfo *getJITInfo() { return &JITInfo; }
|
virtual TargetJITInfo *getJITInfo() { return &JITInfo; }
|
||||||
virtual const TargetSubtarget *getSubtargetImpl() const{ return &Subtarget; }
|
virtual const TargetSubtarget *getSubtargetImpl() const{ return &Subtarget; }
|
||||||
virtual X86TargetLowering *getTargetLowering() { return &TLInfo; }
|
virtual X86TargetLowering *getTargetLowering() const {
|
||||||
|
return const_cast<X86TargetLowering*>(&TLInfo);
|
||||||
|
}
|
||||||
virtual const MRegisterInfo *getRegisterInfo() const {
|
virtual const MRegisterInfo *getRegisterInfo() const {
|
||||||
return &InstrInfo.getRegisterInfo();
|
return &InstrInfo.getRegisterInfo();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user