commit | 992846dd96efc26e078a37434695116fbf50d2eb | [log] [tgz] |
---|---|---|
author | Anton Korobeynikov <asl@math.spbu.ru> | Sat Nov 08 10:16:21 2008 +0000 |
committer | Anton Korobeynikov <asl@math.spbu.ru> | Sat Nov 08 10:16:21 2008 +0000 |
tree | fe1a6d6b8c7fba811c4949c4a41e00a6ab0ada58 | |
parent | 5fbecf7f0bda1834d79153bdd8e7f6b4f87abcb6 [diff] [blame] |
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
diff --git a/utils/TableGen/LLVMCConfigurationEmitter.cpp b/utils/TableGen/LLVMCConfigurationEmitter.cpp index 4372903..3425352 100644 --- a/utils/TableGen/LLVMCConfigurationEmitter.cpp +++ b/utils/TableGen/LLVMCConfigurationEmitter.cpp
@@ -162,8 +162,8 @@ else if (cur_char == '+') { ret += "_plus_"; } - else if (cur_char == ',') { - ret += "_comma_"; + else if (cur_char == '-') { + ret += "_dash_"; } else { ret.push_back(cur_char);