File tree 1 file changed +16
-1
lines changed
compiler/src/dmd/backend/arm
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -2284,35 +2284,48 @@ void disassemble(uint c) @trusted
2284
2284
// printf("%x\n", field(ins, 31, 25));
2285
2285
// printf("p1: %s\n", p1);
2286
2286
2287
+ auto plen = 1 + p1.length;
2287
2288
put(' ' );
2288
2289
puts(p1);
2289
2290
if (p2.length > 0 )
2290
2291
{
2291
2292
foreach (len1; p1.length .. 9 )
2293
+ {
2294
+ ++ plen;
2292
2295
put(' ' );
2296
+ }
2297
+ plen += 1 + s2.length;
2293
2298
put(' ' );
2294
2299
puts(s2);
2295
2300
if (p2[0 ] != ' ' )
2301
+ {
2302
+ plen += p2.length;
2296
2303
puts(p2);
2304
+ }
2297
2305
if (p3.length > 0 )
2298
2306
{
2307
+ plen += sep.length + s3.length + p3.length;
2299
2308
puts(sep);
2300
2309
puts(s3);
2301
2310
puts(p3);
2302
2311
if (p4.length > 0 )
2303
2312
{
2313
+ plen += 1 + p4.length;
2304
2314
put(' ,' );
2305
2315
puts(p4);
2306
2316
if (p5.length > 0 )
2307
2317
{
2318
+ plen += 1 + p5.length;
2308
2319
put(' ,' );
2309
2320
puts(p5);
2310
2321
if (p6.length > 0 )
2311
2322
{
2323
+ plen += 1 + p6.length;
2312
2324
put(' ,' );
2313
2325
puts(p6);
2314
2326
if (p7.length > 0 )
2315
2327
{
2328
+ plen += 1 + p7.length;
2316
2329
put(' ,' );
2317
2330
puts(p7);
2318
2331
}
@@ -2324,7 +2337,9 @@ void disassemble(uint c) @trusted
2324
2337
2325
2338
if (bURL && url)
2326
2339
{
2327
- puts(" // https://www.scs.stanford.edu/~zyedidia/arm64/encodingindex.html#" );
2340
+ for (; plen < 29 ; ++ plen)
2341
+ put(' ' );
2342
+ puts(" // https://www.scs.stanford.edu/~zyedidia/arm64/encodingindex.html#" );
2328
2343
puts(url);
2329
2344
}
2330
2345
}
You can’t perform that action at this time.
0 commit comments