[llvm-commits] [llvm] r95105 - /llvm/trunk/tools/lto/LTOCodeGenerator.cpp
Chris Lattner
sabre at nondot.org
Tue Feb 2 11:03:39 PST 2010
Author: lattner
Date: Tue Feb 2 13:03:39 2010
New Revision: 95105
URL: http://llvm.org/viewvc/llvm-project?rev=95105&view=rev
Log:
remove dead code, we're requesting TargetMachine::AssemblyFile here.
Modified:
llvm/trunk/tools/lto/LTOCodeGenerator.cpp
Modified: llvm/trunk/tools/lto/LTOCodeGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/LTOCodeGenerator.cpp?rev=95105&r1=95104&r2=95105&view=diff
==============================================================================
--- llvm/trunk/tools/lto/LTOCodeGenerator.cpp (original)
+++ llvm/trunk/tools/lto/LTOCodeGenerator.cpp Tue Feb 2 13:03:39 2010
@@ -395,24 +395,17 @@
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;
More information about the llvm-commits
mailing list