Hook up -filetype=obj through the MachO streamer. Here's a demo:
authorChris Lattner <sabre@nondot.org>
Tue, 2 Feb 2010 23:57:42 +0000 (23:57 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 2 Feb 2010 23:57:42 +0000 (23:57 +0000)
commitac7798e9062f9bc371709ed445e1b3153b581e9a
treef300ce13390bc5fc38222dd3d00eb8ec4b6214cf
parent985d45dea357cbfe718b89cebd84b20b1298ab93
Hook up -filetype=obj through the MachO streamer.  Here's a demo:

$ cat t.ll
@g = global i32 42
$ llc t.ll -o t.o -filetype=obj
$ nm t.o
00000000 D _g

There is still a ton of work left.  Instructions are not being encoded
yet apparently.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95162 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCStreamer.h
lib/CodeGen/LLVMTargetMachine.cpp
tools/llc/llc.cpp