refactor this interface

llvm-svn: 22284
This commit is contained in:
Chris Lattner 2005-06-25 02:50:35 +00:00
parent f11f48ba61
commit 6a7b48e747
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ int main(int argc, char **argv) {
}
// Ask the target to add backend passes as necessary
if (Target.addPassesToEmitAssembly(Passes, *Out)) {
if (Target.addPassesToEmitFile(Passes, *Out, TargetMachine::AssemblyFile)) {
std::cerr << argv[0] << ": target '" << Target.getName()
<< "' does not support static compilation!\n";
if (Out != &std::cout) delete Out;