This is the third of a series of patches relating to simplifying llvm-symbolizer tests. See D57441 and D57443 for the previous two. In this one, I have split out a number of distinct test cases from the llvm-symbolizer.test test into separate tests, and simplified them in various ways including:
- by using --obj/positional arguments for the input file and addresses instead of stdin,
- using runtime-generated inputs rather than a pre-canned binary, and
- testing more specifically (i.e. checking only what is interesting to the behaviour changed in the original commit for that test case).
I've removed the test case for using --obj. The tools/llvm-symbolizer/basic.s already tests this case. I've also added a simple test case to the demangle switch test case to show that demangling happens by default.
See PR40070 comment 1 onwards for the motivation.