summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CellSPU/SPUTargetMachine.h
diff options
context:
space:
mode:
authorStuart Hastings <stuart@apple.com>2009-07-15 17:27:11 +0000
committerStuart Hastings <stuart@apple.com>2009-07-15 17:27:11 +0000
commit338191cd67a0a3e324c8b1475c975fed5ffa9e94 (patch)
treeeef241f50ca61beb5959953f38fdd29594a20597 /llvm/lib/Target/CellSPU/SPUTargetMachine.h
parentc5928d2fad2313bf8e582fec74b2b9a385f350e7 (diff)
downloadbcm5719-llvm-338191cd67a0a3e324c8b1475c975fed5ffa9e94.tar.gz
bcm5719-llvm-338191cd67a0a3e324c8b1475c975fed5ffa9e94.zip
Revert 75762, 75763, 75766..75769, 75772..75775, 75778, 75780, 75782 to repair broken LLVM-GCC build.
Will revert 75770 in the llvm-gcc trunk. llvm-svn: 75799
Diffstat (limited to 'llvm/lib/Target/CellSPU/SPUTargetMachine.h')
-rw-r--r--llvm/lib/Target/CellSPU/SPUTargetMachine.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUTargetMachine.h b/llvm/lib/Target/CellSPU/SPUTargetMachine.h
index 18f525d1c8c..ce8e55058ee 100644
--- a/llvm/lib/Target/CellSPU/SPUTargetMachine.h
+++ b/llvm/lib/Target/CellSPU/SPUTargetMachine.h
@@ -42,12 +42,12 @@ protected:
// To avoid having target depend on the asmprinter stuff libraries, asmprinter
// set this functions to ctor pointer at startup time if they are linked in.
typedef FunctionPass *(*AsmPrinterCtorFn)(formatted_raw_ostream &o,
- TargetMachine &tm,
+ SPUTargetMachine &tm,
bool verbose);
static AsmPrinterCtorFn AsmPrinterCtor;
public:
- SPUTargetMachine(const Target &T, const Module &M, const std::string &FS);
+ SPUTargetMachine(const Module &M, const std::string &FS);
/// Return the subtarget implementation object
virtual const SPUSubtarget *getSubtargetImpl() const {
@@ -66,6 +66,12 @@ public:
virtual TargetJITInfo *getJITInfo() {
return NULL;
}
+
+ //! Module match function
+ /*!
+ Module matching function called by TargetMachineRegistry().
+ */
+ static unsigned getModuleMatchQuality(const Module &M);
virtual SPUTargetLowering *getTargetLowering() const {
return const_cast<SPUTargetLowering*>(&TLInfo);
OpenPOWER on IntegriCloud