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)
commitc7fe1ab2504692c99bc7625e2e1821debe3c8c3e
treed69c7618080107a9c7e3509546d56eff1cfbd9e2
parent8cfbff509ebb9d069e3a7478bc36e7e1bc1d9527
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)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229261 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/TargetMachine.cpp