mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-04 17:58:22 +00:00
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:
parent
0431c96cec
commit
85141583cd
@ -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
Block a user