OSDN Git Service

SimplifyLibCalls: Use IRBuilder.CreateGlobalString when creating a string for printf...
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 29 Oct 2011 19:43:31 +0000 (19:43 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 29 Oct 2011 19:43:31 +0000 (19:43 +0000)
commit59e43bde289750a4683879727a9e0e41ab7000a6
treeeb55041fdc5971d35d56fadbe473b63f92931499
parent987d976efc2176e68059387fb1ab793042874327
SimplifyLibCalls: Use IRBuilder.CreateGlobalString when creating a string for printf->puts, which correctly sets the unnamed_addr bit on the resulting GlobalVariable.

Fixes PR11264.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143289 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SimplifyLibCalls.cpp
test/Transforms/SimplifyLibCalls/Printf.ll