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 | 927824750200930ae816587b938462fbf0dd8581 (patch) | |
tree | d3268f0e76cea16b87624109f22977508ea4f0ae /llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp | |
parent | 6e670388c0b9212d53e42668be68b72ab93a86a8 (diff) | |
download | bcm5719-llvm-927824750200930ae816587b938462fbf0dd8581.tar.gz bcm5719-llvm-927824750200930ae816587b938462fbf0dd8581.zip |
Properly escape dashes in TableGen's LLVMC2 emitter.
Patch by Patrick Walton!
llvm-svn: 58901
Diffstat (limited to 'llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp')
-rw-r--r-- | llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp b/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp index 43729033c39..34253524cc7 100644 --- a/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp +++ b/llvm/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); |