OSDN Git Service

Properly escape dashes in TableGen's LLVMC2 emitter.
authorAnton Korobeynikov <asl@math.spbu.ru>
Sat, 8 Nov 2008 10:16:21 +0000 (10:16 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Sat, 8 Nov 2008 10:16:21 +0000 (10:16 +0000)
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

index 4372903..3425352 100644 (file)
@@ -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);