SafeStack: Create the unsafe stack pointer on demand.
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 22 Jun 2015 20:26:54 +0000 (20:26 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 22 Jun 2015 20:26:54 +0000 (20:26 +0000)
commitde26a918c1ad2e1848978b8dfcd5f382652c1693
tree01b0942ccef9bcb09345d542dd80caeb2a5710c8
parent63b4dc46ca636b0db2592b352afa98e0f1f8fea2
SafeStack: Create the unsafe stack pointer on demand.

This avoids creating an unnecessary undefined reference on targets such as
NVPTX that require such references to be declared in asm output.

llvm-svn: 240321
llvm/lib/Transforms/Instrumentation/SafeStack.cpp
llvm/test/Transforms/SafeStack/no-attr.ll