mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-04 02:18:46 +00:00
refactor this interface
llvm-svn: 22284
This commit is contained in:
parent
06282f51cf
commit
c8a5e80f4f
@ -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…
x
Reference in New Issue
Block a user