1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Fix compilation issues.

llvm-svn: 209342
This commit is contained in:
Eric Christopher 2014-05-21 23:51:57 +00:00
parent 7880d61aac
commit 98c81f11ea
3 changed files with 7 additions and 4 deletions

View File

@ -777,7 +777,9 @@ bool EarlyIfConverter::runOnMachineFunction(MachineFunction &MF) {
DEBUG(dbgs() << "********** EARLY IF-CONVERSION **********\n"
<< "********** Function: " << MF.getName() << '\n');
// Only run if conversion if the target wants it.
if (!MF.getTarget().getSubtarget().enableEarlyIfConversion())
if (!MF.getTarget()
.getSubtarget<TargetSubtargetInfo>()
.enableEarlyIfConversion())
return true;
TII = MF.getTarget().getInstrInfo();

View File

@ -110,6 +110,6 @@ void ARM64Subtarget::overrideSchedPolicy(MachineSchedPolicy &Policy,
Policy.OnlyBottomUp = false;
}
bool ARM64Subtarget::enableEarlyIfConversion() const override {
bool ARM64Subtarget::enableEarlyIfConversion() const {
return EnableEarlyIfConvert;
}

View File

@ -16,6 +16,7 @@
#include "llvm/IR/Attributes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Host.h"
@ -319,6 +320,6 @@ X86Subtarget::enablePostRAScheduler(CodeGenOpt::Level OptLevel,
}
bool
X86Subtarget::enableEarlyIfConversion() const override {
return hasCMOV() && X86EarlyIfConv;
X86Subtarget::enableEarlyIfConversion() const {
return hasCMov() && X86EarlyIfConv;
}