summaryrefslogtreecommitdiff
path: root/utils/TableGen/LLVMCConfigurationEmitter.cpp
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-02-13 22:37:28 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-02-13 22:37:28 +0000
commit18c67b994c1f437aa1b61d60f9eecf62f2762952 (patch)
tree9bf704b360c64428a37f59b3a911c0a02e850bff /utils/TableGen/LLVMCConfigurationEmitter.cpp
parent49e496b1cc3b9e056dc760b2940f7a137ca08351 (diff)
downloadllvm-18c67b994c1f437aa1b61d60f9eecf62f2762952.tar.gz
llvm-18c67b994c1f437aa1b61d60f9eecf62f2762952.tar.bz2
llvm-18c67b994c1f437aa1b61d60f9eecf62f2762952.tar.xz
Forward parameter options as '-option=parameter'.
Some tools do not like the '-option parameter' form. Should this be configurable? git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96130 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/LLVMCConfigurationEmitter.cpp')
-rw-r--r--utils/TableGen/LLVMCConfigurationEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/LLVMCConfigurationEmitter.cpp b/utils/TableGen/LLVMCConfigurationEmitter.cpp
index 2abc94bbcd..5558904d29 100644
--- a/utils/TableGen/LLVMCConfigurationEmitter.cpp
+++ b/utils/TableGen/LLVMCConfigurationEmitter.cpp
@@ -1792,8 +1792,8 @@ void EmitForwardOptionPropertyHandlingCode (const OptionDescription& D,
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 << "\" + "