summaryrefslogtreecommitdiffstats
path: root/llvm/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
commita91c0f48e6a0a5f2be7502753cd2f3885e89feaf (patch)
tree255a3c3e0c84b6047b19baedea9665f4ba34ae9f /llvm/include
parentdbe2aa91b9156fefe7893216988daa207896ac95 (diff)
downloadbcm5719-llvm-a91c0f48e6a0a5f2be7502753cd2f3885e89feaf.tar.gz
bcm5719-llvm-a91c0f48e6a0a5f2be7502753cd2f3885e89feaf.zip
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. llvm-svn: 91824
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Target/TargetMachine.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm/Target/TargetMachine.h b/llvm/include/llvm/Target/TargetMachine.h
index 11046359dbb..84cd5b432b6 100644
--- a/llvm/include/llvm/Target/TargetMachine.h
+++ b/llvm/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
OpenPOWER on IntegriCloud