[NFC] Replace Function handling of attributes with less confusing calls
authorArthur Eubanks <aeubanks@google.com>
Mon, 16 Aug 2021 23:29:20 +0000 (16:29 -0700)
committerArthur Eubanks <aeubanks@google.com>
Wed, 18 Aug 2021 04:05:40 +0000 (21:05 -0700)
commit46cf82532cf1502b6320517a2ef42d8c435e598a
treec4eef49199276faf133fb0041a8747b93be6e589
parentb41bfb819d0c3cbffe6dc0679f427ab1f44377b9
[NFC] Replace Function handling of attributes with less confusing calls

To avoid magic constants and confusing indexes.
clang/lib/CodeGen/CodeGenModule.cpp
llvm/include/llvm/IR/Function.h
llvm/lib/IR/Core.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/lib/Transforms/IPO/FunctionAttrs.cpp
llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
llvm/lib/Transforms/Utils/BuildLibCalls.cpp
llvm/lib/Transforms/Utils/ModuleUtils.cpp