mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 11:17:31 +00:00
[X86] Use ternary operator to reduce code slightly. NFC
llvm-svn: 266534
This commit is contained in:
parent
cd3aca2121
commit
ec533074db
@ -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…
x
Reference in New Issue
Block a user