diff options
author | Stuart Hastings <stuart@apple.com> | 2009-07-15 17:27:11 +0000 |
---|---|---|
committer | Stuart Hastings <stuart@apple.com> | 2009-07-15 17:27:11 +0000 |
commit | 1721b8dc5f33106beb57f85ac96a493820e99993 (patch) | |
tree | 2443581013659cf94139995c03b6883ff4ab43db /lib/Target/CellSPU/SPUTargetMachine.h | |
parent | 1615d6742915aa80a589b1177e4423676150ee80 (diff) | |
download | external_llvm-1721b8dc5f33106beb57f85ac96a493820e99993.tar.gz external_llvm-1721b8dc5f33106beb57f85ac96a493820e99993.tar.bz2 external_llvm-1721b8dc5f33106beb57f85ac96a493820e99993.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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75799 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CellSPU/SPUTargetMachine.h')
-rw-r--r-- | lib/Target/CellSPU/SPUTargetMachine.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Target/CellSPU/SPUTargetMachine.h b/lib/Target/CellSPU/SPUTargetMachine.h index 18f525d1c8..ce8e55058e 100644 --- a/lib/Target/CellSPU/SPUTargetMachine.h +++ b/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); |