diff --git a/ChangeLog b/ChangeLog index 4255ea3c63..114b9a707a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Mar 16 04:05:13 2010 Tanaka Akira + + * tool/transcode-tblgen.rb: more info in generating macro names. + Mon Mar 15 21:58:03 2010 Tanaka Akira * tool/transcode-tblgen.rb: ActionMap#each_firstbyte inlined. diff --git a/tool/transcode-tblgen.rb b/tool/transcode-tblgen.rb index 31c4ea0521..2636ed1a8f 100755 --- a/tool/transcode-tblgen.rb +++ b/tool/transcode-tblgen.rb @@ -486,7 +486,7 @@ End else name_hint2 = nil if name_hint - name_hint2 = "#{name_hint}_#{'%02X' % byte_min}" + name_hint2 = "#{name_hint}_#{byte_min == byte_max ? '%02X' % byte_min : '%02Xto%02X' % [byte_min, byte_max]}" end v = "/*BYTE_LOOKUP*/" + rest.gennode(bytes_code, words_code, name_hint2) byte_min.upto(byte_max) {|byte|