aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/llc/llc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index cc1ffd94fd..d61e432873 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -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;