mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
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
This commit is contained in:
parent
62a04136d5
commit
390444a704
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user