diff options
author | Eric Christopher <echristo@apple.com> | 2009-12-21 08:15:29 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2009-12-21 08:15:29 +0000 |
commit | f4f43cb5011611d44219ffb1caa988f5adf305bf (patch) | |
tree | 98c618eee7accef11106c3d0a8cff15a5ad14265 /include | |
parent | 1f1b0f748daf08c4364a34f0af5de692d023c29f (diff) |
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.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index 11046359db..84cd5b432b 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 |