forked from OSchip/llvm-project
[X86] Use ternary operator to reduce code slightly. NFC
llvm-svn: 266534
This commit is contained in:
parent
fd4b9b02a3
commit
1663e7a472
|
@ -478,14 +478,9 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
|
|||
// VASTART needs to be custom lowered to use the VarArgsFrameIndex
|
||||
setOperationAction(ISD::VASTART , MVT::Other, Custom);
|
||||
setOperationAction(ISD::VAEND , MVT::Other, Expand);
|
||||
if (Subtarget.is64Bit()) {
|
||||
setOperationAction(ISD::VAARG , MVT::Other, Custom);
|
||||
setOperationAction(ISD::VACOPY , MVT::Other, Custom);
|
||||
} else {
|
||||
// TargetInfo::CharPtrBuiltinVaList
|
||||
setOperationAction(ISD::VAARG , MVT::Other, Expand);
|
||||
setOperationAction(ISD::VACOPY , MVT::Other, Expand);
|
||||
}
|
||||
bool Is64Bit = Subtarget.is64Bit();
|
||||
setOperationAction(ISD::VAARG, MVT::Other, Is64Bit ? Custom : Expand);
|
||||
setOperationAction(ISD::VACOPY, MVT::Other, Is64Bit ? Custom : Expand);
|
||||
|
||||
setOperationAction(ISD::STACKSAVE, MVT::Other, Expand);
|
||||
setOperationAction(ISD::STACKRESTORE, MVT::Other, Expand);
|
||||
|
|
Loading…
Reference in New Issue