commit | e9fac8c037cc5793e06129e2fb85ae1e69d3231b | [log] [tgz] |
---|---|---|
author | Sriraman Tallam <tmsriram@google.com> | Tue Apr 10 23:32:36 2018 +0000 |
committer | Sriraman Tallam <tmsriram@google.com> | Tue Apr 10 23:32:36 2018 +0000 |
tree | 5813312501198f8b69404851f055996b6efd782b | |
parent | 58dfbf03a0f60e841b8db166854da22d54e69d10 [diff] |
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