File tree 1 file changed +9
-2
lines changed 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,7 @@ std::string dump_function_body_in_html(
238
238
" <caption>Instructions of the function. Column 'Loc' shows program "
239
239
" locations. All numbers are decimal.</caption>\n "
240
240
" <tr>\n "
241
+ " <th>Ord</th>\n "
241
242
" <th>Loc</th>\n "
242
243
" <th>Targets</th>\n "
243
244
" <th>Instruction</th>\n "
@@ -254,15 +255,21 @@ std::string dump_function_body_in_html(
254
255
{
255
256
ostr << " <tr>\n " ;
256
257
258
+ // Dumping ordinal of the instruction
259
+ ostr << " <td align=\" right\" >"
260
+ << std::distance (fn_body.instructions .cbegin (), it)
261
+ << " </td>\n "
262
+ ;
263
+
257
264
// Dumping program location
258
- ostr << " <td>"
265
+ ostr << " <td align= \" right \" >"
259
266
<< it->location_number
260
267
<< " </td>\n "
261
268
;
262
269
263
270
// Dumping targets
264
271
if (it->is_target ())
265
- ostr << " <td>" << it->target_number << " </td>\n " ;
272
+ ostr << " <td align= \" center \" >" << it->target_number << " </td>\n " ;
266
273
else
267
274
ostr << " <td> </td>\n " ;
268
275
You can’t perform that action at this time.
0 commit comments