diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-02 19:14:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-02 19:14:27 +0000 |
commit | b5c5160a554cb0debeb7913287d9c099a753a59e (patch) | |
tree | 34099bd031fbb6fc12df119e136754f0a63322b1 /tools | |
parent | 82a594693976edefa37160567e7f7495c2653c99 (diff) |
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')
-rw-r--r-- | tools/llc/llc.cpp | 9 | ||||
-rw-r--r-- | tools/lto/LTOCodeGenerator.cpp | 6 |
2 files changed, 0 insertions, 15 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. diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp index da5c119a71..5275cc3673 100644 --- a/tools/lto/LTOCodeGenerator.cpp +++ b/tools/lto/LTOCodeGenerator.cpp @@ -405,12 +405,6 @@ bool LTOCodeGenerator::generateAssemblyCode(formatted_raw_ostream& out, return true; } - if (_target->addPassesToEmitFileFinish(*codeGenPasses,(ObjectCodeEmitter*)0, - CodeGenOpt::Aggressive)) { - errMsg = "target does not support generation of this file type"; - return true; - } - // Run our queue of passes all at once now, efficiently. passes.run(*mergedModule); |