Analysis: Canonicalize access to function attributes, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 14 Feb 2015 00:12:15 +0000 (00:12 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 14 Feb 2015 00:12:15 +0000 (00:12 +0000)
commitefd49ea0d2f0a2ee8537d87cdbe12b24727d6f95
treeb3e99788a3e8ebfa7f3af2ce0f51171b08175639
parentc21d153388e3c4fa87b5080e4372ec6b3a28e806
Analysis: Canonicalize access to function attributes, NFC

Canonicalize access to function attributes to use the simpler API.

getAttributes().getAttribute(AttributeSet::FunctionIndex, Kind)
  => getFnAttribute(Kind)

getAttributes().hasAttribute(AttributeSet::FunctionIndex, Kind)
  => hasFnAttribute(Kind)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229192 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/IPA/InlineCost.cpp
lib/Analysis/MemoryDependenceAnalysis.cpp