aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lto
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-02 21:06:45 +0000
committerChris Lattner <sabre@nondot.org>2010-02-02 21:06:45 +0000
commit211edae4843f5c2ee9c376e88e4cf0ecc8745f03 (patch)
tree2af0b6e66dc034558cc823060679525a2e247594 /tools/lto
parent1de46a4ab526243aa950e3f06ab40745d275527d (diff)
downloadexternal_llvm-211edae4843f5c2ee9c376e88e4cf0ecc8745f03.zip
external_llvm-211edae4843f5c2ee9c376e88e4cf0ecc8745f03.tar.gz
external_llvm-211edae4843f5c2ee9c376e88e4cf0ecc8745f03.tar.bz2
eliminate FileModel::Model, just use CodeGenFileType. The client
of the code generator shouldn't care what object format a target uses. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95124 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r--tools/lto/LTOCodeGenerator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp
index 5275cc3..bb31b0b 100644
--- a/tools/lto/LTOCodeGenerator.cpp
+++ b/tools/lto/LTOCodeGenerator.cpp
@@ -396,9 +396,9 @@ bool LTOCodeGenerator::generateAssemblyCode(formatted_raw_ostream& out,
codeGenPasses->add(new TargetData(*_target->getTargetData()));
switch (_target->addPassesToEmitFile(*codeGenPasses, out,
- TargetMachine::AssemblyFile,
+ TargetMachine::CGFT_AssemblyFile,
CodeGenOpt::Aggressive)) {
- case FileModel::AsmFile:
+ case TargetMachine::CGFT_AssemblyFile:
break;
default:
errMsg = "target file type not supported";