mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
[WebAssembly] Use the checked form of MachineFunction::getSubtarget. NFC.
llvm-svn: 245852
This commit is contained in:
parent
8c96f82ac6
commit
18755aab78
@ -58,8 +58,7 @@ private:
|
||||
}
|
||||
|
||||
bool runOnMachineFunction(MachineFunction &MF) override {
|
||||
TII = static_cast<const WebAssemblyInstrInfo *>(
|
||||
MF.getSubtarget().getInstrInfo());
|
||||
TII = MF.getSubtarget<WebAssemblySubtarget>().getInstrInfo();
|
||||
return AsmPrinter::runOnMachineFunction(MF);
|
||||
}
|
||||
|
||||
|
@ -40,8 +40,8 @@ using namespace llvm;
|
||||
/// register.
|
||||
bool WebAssemblyFrameLowering::hasFP(const MachineFunction &MF) const {
|
||||
const MachineFrameInfo *MFI = MF.getFrameInfo();
|
||||
const auto *RegInfo = static_cast<const WebAssemblyRegisterInfo *>(
|
||||
MF.getSubtarget().getRegisterInfo());
|
||||
const auto *RegInfo =
|
||||
MF.getSubtarget<WebAssemblySubtarget>().getRegisterInfo();
|
||||
return MFI->hasCalls() || MFI->hasVarSizedObjects() ||
|
||||
MFI->isFrameAddressTaken() || MFI->hasStackMap() ||
|
||||
MFI->hasPatchPoint() || RegInfo->needsStackRealignment(MF);
|
||||
|
Loading…
Reference in New Issue
Block a user