[PATCH] D44004: [ELF] - Show data commands in the map file.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 7 05:14:15 PST 2018


>> +# RUN: ld.lld -o %t %t.o -Map=%t.map --script %s
>> +# RUN: FileCheck -strict-whitespace %s < %t.map
>
>Why do you need -strict-whitespace? The fact that you have a newline in
>0x123 * (1+1) should be sufficient, no?

For example, I had the following code:
S += (" " + Tokens[I]).str();

if it would be multiple spaces here:
S += ("       " + Tokens[I]).str();

then without -strict-whitespace test would not catch that. I think we want
to test exact output we print, hence had to use -strict-whitespace.

George.


More information about the llvm-commits mailing list