diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-30 06:23:29 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2008-05-30 06:23:29 +0000 |
commit | f83f33e8d36c383e1b95663f999be2efa1ee312d (patch) | |
tree | c007c4c79dbcf9915b01f0c83ecd4527ee3d8469 /llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp | |
parent | b043663cf9289497a83c093d55751c0a03120a64 (diff) | |
download | bcm5719-llvm-f83f33e8d36c383e1b95663f999be2efa1ee312d.tar.gz bcm5719-llvm-f83f33e8d36c383e1b95663f999be2efa1ee312d.zip |
Fix: 'sink' handling was broken.
llvm-svn: 51750
Diffstat (limited to 'llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp')
-rw-r--r-- | llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp b/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp index f527defe450..45f6a13d230 100644 --- a/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp +++ b/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp @@ -1015,10 +1015,10 @@ void EmitCmdLineVecFill(const Init* CmdLine, const std::string& ToolName, O << "vec.push_back(\"" << cmd << "\");\n"; } } - O << IndentLevel << "ret = Action(" + O << IndentLevel << "cmd = " << ((StrVec[0][0] == '$') ? SubstituteSpecialCommands(StrVec[0]) : "\"" + StrVec[0] + "\"") - << ", vec);\n"; + << ";\n"; } /// EmitCmdLineVecFillCallback - A function object wrapper around @@ -1052,7 +1052,7 @@ void EmitGenerateActionMethod (const ToolProperties& P, O << Indent2 << "const sys::Path& outFile,\n" << Indent2 << "const InputLanguagesSet& InLangs) const\n" << Indent1 << "{\n" - << Indent2 << "Action ret;\n" + << Indent2 << "std::string cmd;\n" << Indent2 << "std::vector<std::string> vec;\n"; // cmd_line is either a string or a 'case' construct. @@ -1078,7 +1078,7 @@ void EmitGenerateActionMethod (const ToolProperties& P, << Indent2 << "}\n"; } - O << Indent2 << "return ret;\n" + O << Indent2 << "return Action(cmd, vec);\n" << Indent1 << "}\n\n"; } @@ -1214,7 +1214,7 @@ void EmitOptionDescriptions (const GlobalOptionDescriptions& descs, { std::vector<GlobalOptionDescription> Aliases; - // Emit static cl::Option variables + // Emit static cl::Option variables. for (GlobalOptionDescriptions::const_iterator B = descs.begin(), E = descs.end(); B!=E; ++B) { const GlobalOptionDescription& val = B->second; |