From b5c5160a554cb0debeb7913287d9c099a753a59e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 2 Feb 2010 19:14:27 +0000 Subject: 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 --- tools/llc/llc.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'tools/llc') 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. -- cgit v1.2.3