aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-02 23:57:42 +0000
committerChris Lattner <sabre@nondot.org>2010-02-02 23:57:42 +0000
commitac7798e9062f9bc371709ed445e1b3153b581e9a (patch)
treef300ce13390bc5fc38222dd3d00eb8ec4b6214cf /tools
parent985d45dea357cbfe718b89cebd84b20b1298ab93 (diff)
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
Diffstat (limited to 'tools')
-rw-r--r--tools/llc/llc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index eebd20846c..c7bd1c6706 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -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;
}