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
This commit is contained in:
Anton Korobeynikov 2008-11-08 10:16:21 +00:00
parent 203e71db29
commit 760a5724c6

View 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);