refactor this interface

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22284 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-06-25 02:50:35 +00:00
parent 0431c96cec
commit 85141583cd

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;