aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-02 19:03:39 +0000
committerChris Lattner <sabre@nondot.org>2010-02-02 19:03:39 +0000
commit390444a704499a24ed61487edb67bcdad3e8078e (patch)
treecdaa48c1f9c8e2e52e4bd3bd3643c1c2eef89fb4 /tools
parent62a04136d5e2f4153c02fb0b78be9b48e14423da (diff)
downloadexternal_llvm-390444a704499a24ed61487edb67bcdad3e8078e.zip
external_llvm-390444a704499a24ed61487edb67bcdad3e8078e.tar.gz
external_llvm-390444a704499a24ed61487edb67bcdad3e8078e.tar.bz2
remove dead code, we're requesting TargetMachine::AssemblyFile here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/lto/LTOCodeGenerator.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp
index 263b603..da5c119 100644
--- a/tools/lto/LTOCodeGenerator.cpp
+++ b/tools/lto/LTOCodeGenerator.cpp
@@ -395,24 +395,17 @@ bool LTOCodeGenerator::generateAssemblyCode(formatted_raw_ostream& out,
codeGenPasses->add(new TargetData(*_target->getTargetData()));
- ObjectCodeEmitter* oce = NULL;
-
switch (_target->addPassesToEmitFile(*codeGenPasses, out,
TargetMachine::AssemblyFile,
CodeGenOpt::Aggressive)) {
- case FileModel::ElfFile:
- oce = AddELFWriter(*codeGenPasses, out, *_target);
- break;
case FileModel::AsmFile:
break;
- case FileModel::MachOFile:
- case FileModel::Error:
- case FileModel::None:
+ default:
errMsg = "target file type not supported";
return true;
}
- if (_target->addPassesToEmitFileFinish(*codeGenPasses, oce,
+ if (_target->addPassesToEmitFileFinish(*codeGenPasses,(ObjectCodeEmitter*)0,
CodeGenOpt::Aggressive)) {
errMsg = "target does not support generation of this file type";
return true;