Define variable HasMips64 in MipsTargetLowering.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140569 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Akira Hatanaka 2011-09-26 21:47:02 +00:00
parent 09dd60feef
commit 8b4198da9d
2 changed files with 5 additions and 4 deletions

View File

@ -82,9 +82,9 @@ const char *MipsTargetLowering::getTargetNodeName(unsigned Opcode) const {
MipsTargetLowering::
MipsTargetLowering(MipsTargetMachine &TM)
: TargetLowering(TM, new MipsTargetObjectFile()) {
Subtarget = &TM.getSubtarget<MipsSubtarget>();
bool HasMips64 = Subtarget->hasMips64();
: TargetLowering(TM, new MipsTargetObjectFile()),
Subtarget(&TM.getSubtarget<MipsSubtarget>()),
HasMips64(Subtarget->hasMips64()) {
// Mips does not have i1 type, so use i32 for
// setcc operations results (slt, sgt, ...).

View File

@ -115,6 +115,7 @@ namespace llvm {
// Subtarget Info
const MipsSubtarget *Subtarget;
bool HasMips64;
// Lower Operand helpers
SDValue LowerCallResult(SDValue Chain, SDValue InFlag,