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
This commit is contained in:
Chris Lattner committed 2010-02-02 23:57:42 +00:00
1 parent 985d45dea3
commit ac7798e906
3 files changed
+15 -7

No files matched your search

+1
View File
@@ -360,6 +360,7 @@ int main(int argc, char **argv) {
sys::Path(OutputFilename).eraseFromDisk();
return 1;
case TargetMachine::CGFT_AssemblyFile:
case TargetMachine::CGFT_ObjectFile:
break;
}