summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-03-18 22:48:41 +0000
committerJim Grosbach <grosbach@apple.com>2011-03-18 22:48:41 +0000
commit31649e61bcead26a63c7cd452da90fff5e000b91 (patch)
treecbb4bedb2841d8634b3c8da6dab1d02576cef091 /include
parent3f30af3f4563fc6987d123a024f05b3e7769d9a1 (diff)
downloadllvm-31649e61bcead26a63c7cd452da90fff5e000b91.tar.gz
llvm-31649e61bcead26a63c7cd452da90fff5e000b91.tar.bz2
llvm-31649e61bcead26a63c7cd452da90fff5e000b91.tar.xz
Beginnings of MC-JIT code generation.
Proof-of-concept code that code-gens a module to an in-memory MachO object. This will be hooked up to a run-time dynamic linker library (see: llvm-rtdyld for similarly conceptual work for that part) which will take the compiled object and link it together with the rest of the system, providing back to the JIT a table of available symbols which will be used to respond to the getPointerTo*() queries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127916 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetMachine.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h
index 030bf5b89f..7dd5c4ef15 100644
--- a/include/llvm/Target/TargetMachine.h
+++ b/include/llvm/Target/TargetMachine.h
@@ -38,6 +38,7 @@ class PassManager;
class Pass;
class TargetELFWriterInfo;
class formatted_raw_ostream;
+class raw_ostream;
// Relocation model types.
namespace Reloc {
@@ -267,6 +268,7 @@ public:
///
virtual bool addPassesToEmitMC(PassManagerBase &,
MCContext *&,
+ raw_ostream &OS,
CodeGenOpt::Level,
bool = true) {
return true;
@@ -324,6 +326,7 @@ public:
///
virtual bool addPassesToEmitMC(PassManagerBase &PM,
MCContext *&Ctx,
+ raw_ostream &OS,
CodeGenOpt::Level OptLevel,
bool DisableVerify = true);