summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-05-21 23:51:57 +0000
committerEric Christopher <echristo@gmail.com>2014-05-21 23:51:57 +0000
commit3470bbbd54e8e841ddac233df24ad086afe5521a (patch)
treeb1b1484df7864d9894204c64ce4d1bf9e5fd5808
parent8eb3281731de833d41016c97dc2c002b9580f824 (diff)
downloadbcm5719-llvm-3470bbbd54e8e841ddac233df24ad086afe5521a.tar.gz
bcm5719-llvm-3470bbbd54e8e841ddac233df24ad086afe5521a.zip
Fix compilation issues.
llvm-svn: 209342
-rw-r--r--llvm/lib/CodeGen/EarlyIfConversion.cpp4
-rw-r--r--llvm/lib/Target/ARM64/ARM64Subtarget.cpp2
-rw-r--r--llvm/lib/Target/X86/X86Subtarget.cpp5
3 files changed, 7 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/EarlyIfConversion.cpp b/llvm/lib/CodeGen/EarlyIfConversion.cpp
index b621e101773..2d47be71bea 100644
--- a/llvm/lib/CodeGen/EarlyIfConversion.cpp
+++ b/llvm/lib/CodeGen/EarlyIfConversion.cpp
@@ -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();
diff --git a/llvm/lib/Target/ARM64/ARM64Subtarget.cpp b/llvm/lib/Target/ARM64/ARM64Subtarget.cpp
index d81e21b51df..624e47483ff 100644
--- a/llvm/lib/Target/ARM64/ARM64Subtarget.cpp
+++ b/llvm/lib/Target/ARM64/ARM64Subtarget.cpp
@@ -110,6 +110,6 @@ void ARM64Subtarget::overrideSchedPolicy(MachineSchedPolicy &Policy,
Policy.OnlyBottomUp = false;
}
-bool ARM64Subtarget::enableEarlyIfConversion() const override {
+bool ARM64Subtarget::enableEarlyIfConversion() const {
return EnableEarlyIfConvert;
}
diff --git a/llvm/lib/Target/X86/X86Subtarget.cpp b/llvm/lib/Target/X86/X86Subtarget.cpp
index a6ad386b0a9..989e0d61b6f 100644
--- a/llvm/lib/Target/X86/X86Subtarget.cpp
+++ b/llvm/lib/Target/X86/X86Subtarget.cpp
@@ -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;
}
OpenPOWER on IntegriCloud