OSDN Git Service

Improve the debug-info test created in r274263.
authorYunzhong Gao <Yunzhong.Gao@sony.com>
Wed, 5 Oct 2016 20:26:29 +0000 (20:26 +0000)
committerYunzhong Gao <Yunzhong.Gao@sony.com>
Wed, 5 Oct 2016 20:26:29 +0000 (20:26 +0000)
commit8f952a804e061f0693f1f64d646277c3a219597a
tree2cfbce39cd2cd5e6bea55938d5d866a117ae9f07
parent798edaca32a26b6021bb9fcd0c50d8691fe61129
Improve the debug-info test created in r274263.

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.

Differential Revision: https://reviews.llvm.org/D25290

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283374 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/X86/stack-protector.ll