forked from OSchip/llvm-project
parent
f11f48ba61
commit
6a7b48e747
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue