Simplification of libcall like printf->puts must check for RtLibUseGOT metadata.

With -fno-plt, for example, calls to printf when getting converted to puts
still use the PLT. This patch checks for the metadata "RtLibUseGOT" and
annotates the declaration with the right attributes.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329768 91177308-0d34-0410-b5e6-96231b3b80d8
2 files changed