diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-11-08 10:16:21 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-11-08 10:16:21 +0000 |
commit | 760a5724c671467dd407184c7a88ae145c0f938b (patch) | |
tree | fe1a6d6b8c7fba811c4949c4a41e00a6ab0ada58 | |
parent | 203e71db299b36eee5649d9a7223c3b13af496bc (diff) |
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
-rw-r--r-- | utils/TableGen/LLVMCConfigurationEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/LLVMCConfigurationEmitter.cpp b/utils/TableGen/LLVMCConfigurationEmitter.cpp index 43729033c3..34253524cc 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); |