summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPC.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-15 08:49:58 +0000
committerChris Lattner <sabre@nondot.org>2010-11-15 08:49:58 +0000
commitb46443a686c29a1aa8f881c48c35d3f61a35f7ac (patch)
tree4a030e935ba154bad63657ea79afa22422aa5d62 /lib/Target/PowerPC/PPC.h
parentb7035d04421112a4585245f67bc564170ec45b29 (diff)
downloadllvm-b46443a686c29a1aa8f881c48c35d3f61a35f7ac.tar.gz
llvm-b46443a686c29a1aa8f881c48c35d3f61a35f7ac.tar.bz2
llvm-b46443a686c29a1aa8f881c48c35d3f61a35f7ac.tar.xz
Wire up primitive support in the assembler backend for writing .o files
directly on the mac. This is very early, doesn't support relocations and has a terrible hack to avoid .machine from being printed, but despite that it generates an bitwise-identical-to-cctools .o file for stuff like this: define i32 @test() nounwind { ret i32 42 } I don't plan to continue pushing this forward, but if anyone else was interested in doing it, it should be really straight-forward. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119136 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPC.h')
-rw-r--r--lib/Target/PowerPC/PPC.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPC.h b/lib/Target/PowerPC/PPC.h
index dbe98a68db..7242f3aa84 100644
--- a/lib/Target/PowerPC/PPC.h
+++ b/lib/Target/PowerPC/PPC.h
@@ -15,6 +15,8 @@
#ifndef LLVM_TARGET_POWERPC_H
#define LLVM_TARGET_POWERPC_H
+#include <string>
+
// GCC #defines PPC on Linux but we use it as our namespace name
#undef PPC
@@ -30,6 +32,7 @@ namespace llvm {
class MCCodeEmitter;
class MCContext;
class TargetMachine;
+ class TargetAsmBackend;
FunctionPass *createPPCBranchSelectionPass();
FunctionPass *createPPCISelDag(PPCTargetMachine &TM);
@@ -37,6 +40,7 @@ namespace llvm {
JITCodeEmitter &MCE);
MCCodeEmitter *createPPCMCCodeEmitter(const Target &, TargetMachine &TM,
MCContext &Ctx);
+ TargetAsmBackend *createPPCAsmBackend(const Target &, const std::string &);
void LowerPPCMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
AsmPrinter &AP);