Hi,
This patch is related to r274263 or Phabricator/D21818.
This patch aims to improve the test case added in the previous commit to verify
specifically that the stack protector pass is adding the debug line info as
intended. Before, the test only verified that the verifier pass does not crash.
The current approach is to generate the assembly output and then look for the
.loc directive.
To recapture from the mailing list, I also attempted to use llc's -start-after
and -stop-after options to run and check a single pass, but it would involve
the MIR format which seems not ready for common use yet.
Please review whether this test seems reasonable,
- Gao