summaryrefslogtreecommitdiff
path: root/tools/llc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-02 19:14:27 +0000
committerChris Lattner <sabre@nondot.org>2010-02-02 19:14:27 +0000
commitb5c5160a554cb0debeb7913287d9c099a753a59e (patch)
tree34099bd031fbb6fc12df119e136754f0a63322b1 /tools/llc
parent82a594693976edefa37160567e7f7495c2653c99 (diff)
downloadllvm-b5c5160a554cb0debeb7913287d9c099a753a59e.tar.gz
llvm-b5c5160a554cb0debeb7913287d9c099a753a59e.tar.bz2
llvm-b5c5160a554cb0debeb7913287d9c099a753a59e.tar.xz
eliminate all forms of addPassesToEmitMachineCode except
the one used by the JIT. Remove all forms of addPassesToEmitFileFinish except the one used by the static code generator. Inline the remaining version of addPassesToEmitFileFinish into its only caller. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llc')
-rw-r--r--tools/llc/llc.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index 1cbff14909..395eaa29e2 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -363,15 +363,6 @@ int main(int argc, char **argv) {
break;
}
- if (Target.addPassesToEmitFileFinish(Passes, (ObjectCodeEmitter *)0, OLvl)){
- errs() << argv[0] << ": target does not support generation of this"
- << " file type!\n";
- if (Out != &fouts()) delete Out;
- // And the Out file is empty and useless, so remove it now.
- sys::Path(OutputFilename).eraseFromDisk();
- return 1;
- }
-
Passes.doInitialization();
// Run our queue of passes all at once now, efficiently.