[llvm-commits] [llvm] r96130 - in /llvm/trunk: test/LLVMC/ForwardAs.td utils/TableGen/LLVMCConfigurationEmitter.cpp
Mikhail Glushenkov
foldr at codedgers.com
Sat Feb 13 14:37:28 PST 2010
Author: foldr
Date: Sat Feb 13 16:37:28 2010
New Revision: 96130
URL: http://llvm.org/viewvc/llvm-project?rev=96130&view=rev
Log:
Forward parameter options as '-option=parameter'.
Some tools do not like the '-option parameter' form. Should this be
configurable?
Modified:
llvm/trunk/test/LLVMC/ForwardAs.td
llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp
Modified: llvm/trunk/test/LLVMC/ForwardAs.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LLVMC/ForwardAs.td?rev=96130&r1=96129&r2=96130&view=diff
==============================================================================
--- llvm/trunk/test/LLVMC/ForwardAs.td (original)
+++ llvm/trunk/test/LLVMC/ForwardAs.td Sat Feb 13 16:37:28 2010
@@ -13,7 +13,7 @@
(in_language "dummy"),
(out_language "dummy"),
(actions (case
- // CHECK: vec.push_back("unique_name")
+ // CHECK: vec.push_back("unique_name
(not_empty "dummy"), (forward_as "dummy", "unique_name")))
]>;
Modified: llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp?rev=96130&r1=96129&r2=96130&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp Sat Feb 13 16:37:28 2010
@@ -1792,8 +1792,8 @@
O.indent(IndentLevel) << "vec.push_back(\"" << Name << "\");\n";
break;
case OptionType::Parameter:
- O.indent(IndentLevel) << "vec.push_back(\"" << Name << "\");\n";
- O.indent(IndentLevel) << "vec.push_back(" << D.GenVariableName() << ");\n";
+ O.indent(IndentLevel) << "vec.push_back(\"" << Name << "=\" + "
+ << D.GenVariableName() << ");\n";
break;
case OptionType::Prefix:
O.indent(IndentLevel) << "vec.push_back(\"" << Name << "\" + "
More information about the llvm-commits
mailing list