Make it possible to use the generalised 'case' construct in the cmd_line property.
llvm-svn: 51728
diff --git a/llvm/tools/llvmc2/CompilationGraph.cpp b/llvm/tools/llvmc2/CompilationGraph.cpp
index e06a168..7ce4313 100644
--- a/llvm/tools/llvmc2/CompilationGraph.cpp
+++ b/llvm/tools/llvmc2/CompilationGraph.cpp
@@ -177,7 +177,7 @@
Out = MakeTempFile(TempDir, In.getBasename(), CurTool->OutputSuffix());
}
- if (int ret = CurTool->GenerateAction(In, Out).Execute())
+ if (int ret = CurTool->GenerateAction(In, Out, InLangs).Execute())
throw error_code(ret);
if (Last)
@@ -343,7 +343,7 @@
Out = MakeTempFile(TempDir, "tmp", JT->OutputSuffix());
}
- if (int ret = JT->GenerateAction(Out).Execute())
+ if (int ret = JT->GenerateAction(Out, InLangs).Execute())
throw error_code(ret);
if (!IsLast) {