Target: Canonicalize access to function attributes, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 14 Feb 2015 15:36:52 +0000 (15:36 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 14 Feb 2015 15:36:52 +0000 (15:36 +0000)
commit025c0ad74c73648ddb4456354cbc7690afd21166
tree7bc7634bf75381c1facef45e3614ddd1e0196e3e
parentb5054333eca797944a852efa9e39512bbed924ea
Target: 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)

llvm-svn: 229261
llvm/lib/Target/TargetMachine.cpp