Wire up primitive support in the assembler backend for writing .o files
authorChris Lattner <sabre@nondot.org>
Mon, 15 Nov 2010 08:49:58 +0000 (08:49 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 15 Nov 2010 08:49:58 +0000 (08:49 +0000)
commitb46443a686c29a1aa8f881c48c35d3f61a35f7ac
tree4a030e935ba154bad63657ea79afa22422aa5d62
parentb7035d04421112a4585245f67bc564170ec45b29
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
lib/Target/PowerPC/CMakeLists.txt
lib/Target/PowerPC/PPC.h
lib/Target/PowerPC/PPCAsmBackend.cpp [new file with mode: 0644]
lib/Target/PowerPC/PPCAsmPrinter.cpp
lib/Target/PowerPC/PPCTargetMachine.cpp