aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2009-12-21 08:15:29 +0000
committerEric Christopher <echristo@apple.com>2009-12-21 08:15:29 +0000
commit7669c97ba622ae8752f620bc1b47e385cb264b7a (patch)
tree98c618eee7accef11106c3d0a8cff15a5ad14265 /include
parent0427ac1ce35a4eb1c4e38b9c1b36e4f06116420e (diff)
downloadexternal_llvm-7669c97ba622ae8752f620bc1b47e385cb264b7a.zip
external_llvm-7669c97ba622ae8752f620bc1b47e385cb264b7a.tar.gz
external_llvm-7669c97ba622ae8752f620bc1b47e385cb264b7a.tar.bz2
Fix setting and default setting of code model for jit. Do this
by allowing backends to override routines that will default the JIT and Static code generation to an appropriate code model for the architecture. Should fix PR 5773. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91824 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetMachine.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h
index 1104635..84cd5b4 100644
--- a/include/llvm/Target/TargetMachine.h
+++ b/include/llvm/Target/TargetMachine.h
@@ -292,6 +292,13 @@ protected: // Can only create subclasses.
///
bool addCommonCodeGenPasses(PassManagerBase &, CodeGenOpt::Level);
+private:
+ // These routines are used by addPassesToEmitFileFinish and
+ // addPassesToEmitMachineCode to set the CodeModel if it's still marked
+ // as default.
+ virtual void setCodeModelForJIT();
+ virtual void setCodeModelForStatic();
+
public:
/// addPassesToEmitFile - Add passes to the specified pass manager to get the