From 760a5724c671467dd407184c7a88ae145c0f938b Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Sat, 8 Nov 2008 10:16:21 +0000 Subject: [PATCH] Properly escape dashes in TableGen's LLVMC2 emitter. Patch by Patrick Walton! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58901 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/LLVMCConfigurationEmitter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/TableGen/LLVMCConfigurationEmitter.cpp b/utils/TableGen/LLVMCConfigurationEmitter.cpp index 43729033c39..34253524cc7 100644 --- a/utils/TableGen/LLVMCConfigurationEmitter.cpp +++ b/utils/TableGen/LLVMCConfigurationEmitter.cpp @@ -162,8 +162,8 @@ struct OptionDescription { else if (cur_char == '+') { ret += "_plus_"; } - else if (cur_char == ',') { - ret += "_comma_"; + else if (cur_char == '-') { + ret += "_dash_"; } else { ret.push_back(cur_char);