[llvm-commits] [llvm] r65623 - /llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp
Mikhail Glushenkov
foldr at codedgers.com
Thu Feb 26 22:46:55 PST 2009
Author: foldr
Date: Fri Feb 27 00:46:55 2009
New Revision: 65623
URL: http://llvm.org/viewvc/llvm-project?rev=65623&view=rev
Log:
'append_cmd' should split its argument.
Makes '(append_cmd "-foo a b c")' work.
Modified:
llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp
Modified: llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp?rev=65623&r1=65622&r2=65623&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp Fri Feb 27 00:46:55 2009
@@ -1422,7 +1422,12 @@
if (ActionName == "append_cmd") {
checkNumberOfArguments(&Dag, 1);
const std::string& Cmd = InitPtrToString(Dag.getArg(0));
- O << IndentLevel << "vec.push_back(\"" << Cmd << "\");\n";
+ StrVector Out;
+ llvm::SplitString(Cmd, Out);
+
+ for (StrVector::const_iterator B = Out.begin(), E = Out.end();
+ B != E; ++B)
+ O << IndentLevel << "vec.push_back(\"" << *B << "\");\n";
}
else if (ActionName == "error") {
O << IndentLevel << "throw std::runtime_error(\"" <<
More information about the llvm-commits
mailing list