summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2015-03-31 12:01:06 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2015-03-31 12:01:06 +0000
commit7aed6890fdf81853af7477cea20b63da85754e2c (patch)
treec5adcb893645744fc80019e2a026afb1dce80f45 /llvm/lib/Target/PowerPC/PPCSubtarget.cpp
parentdccbfaf917e009c8cf260091275b0e4d1cb5d456 (diff)
downloadbcm5719-llvm-7aed6890fdf81853af7477cea20b63da85754e2c.tar.gz
bcm5719-llvm-7aed6890fdf81853af7477cea20b63da85754e2c.zip
[PowerPC] Remove TargetMachine CPU auto-detection
As was done for X86 in r206094. llvm-svn: 233684
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCSubtarget.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
index ed888038a10..7a715a4afc1 100644
--- a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
+++ b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp
@@ -21,7 +21,6 @@
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/Support/CommandLine.h"
-#include "llvm/Support/Host.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Target/TargetMachine.h"
#include <cstdlib>
@@ -110,11 +109,6 @@ void PPCSubtarget::initSubtargetFeatures(StringRef CPU, StringRef FS) {
else
CPUName = "generic";
}
-#if (defined(__APPLE__) || defined(__linux__)) && \
- (defined(__ppc__) || defined(__powerpc__))
- if (CPUName == "generic")
- CPUName = sys::getHostCPUName();
-#endif
// Initialize scheduling itinerary for the specified CPU.
InstrItins = getInstrItineraryForCPU(CPUName);
OpenPOWER on IntegriCloud