1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Properly escape dashes in TableGen's LLVMC2 emitter.

Patch by Patrick Walton!

llvm-svn: 58901
This commit is contained in:
Anton Korobeynikov 2008-11-08 10:16:21 +00:00
parent f153e3c62e
commit 3f69727bd5

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