summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsTargetMachine.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-07-20 07:51:56 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-07-20 07:51:56 +0000
commitefd9b4240f78a632b7e46697a94db6c74d2487b9 (patch)
tree32a97747ae79f5b6d584f499cbdc4e35c13b41ec /llvm/lib/Target/Mips/MipsTargetMachine.h
parentd2b92d6544c06d8a7af6939a587b781ca1d37342 (diff)
downloadbcm5719-llvm-efd9b4240f78a632b7e46697a94db6c74d2487b9.tar.gz
bcm5719-llvm-efd9b4240f78a632b7e46697a94db6c74d2487b9.zip
- Move CodeModel from a TargetMachine global option to MCCodeGenInfo.
- Introduce JITDefault code model. This tells targets to set different default code model for JIT. This eliminates the ugly hack in TargetMachine where code model is changed after construction. llvm-svn: 135580
Diffstat (limited to 'llvm/lib/Target/Mips/MipsTargetMachine.h')
-rw-r--r--llvm/lib/Target/Mips/MipsTargetMachine.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsTargetMachine.h b/llvm/lib/Target/Mips/MipsTargetMachine.h
index c1671e69bbf..421405649ab 100644
--- a/llvm/lib/Target/Mips/MipsTargetMachine.h
+++ b/llvm/lib/Target/Mips/MipsTargetMachine.h
@@ -36,7 +36,8 @@ namespace llvm {
public:
MipsTargetMachine(const Target &T, StringRef TT,
StringRef CPU, StringRef FS,
- Reloc::Model RM, bool isLittle);
+ Reloc::Model RM, CodeModel::Model CM,
+ bool isLittle);
virtual const MipsInstrInfo *getInstrInfo() const
{ return &InstrInfo; }
@@ -74,7 +75,8 @@ namespace llvm {
class MipselTargetMachine : public MipsTargetMachine {
public:
MipselTargetMachine(const Target &T, StringRef TT,
- StringRef CPU, StringRef FS, Reloc::Model RM);
+ StringRef CPU, StringRef FS,
+ Reloc::Model RM, CodeModel::Model CM);
};
} // End llvm namespace
OpenPOWER on IntegriCloud