[llvm] 16e8134 - [NFC] One more AttributeList::getAttribute(FunctionIndex) -> getFnAttr()
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 13 16:59:57 PDT 2021
Author: Arthur Eubanks
Date: 2021-08-13T16:56:42-07:00
New Revision: 16e8134e7c770849a6a1b9c79fdd548a0ef99190
URL: https://github.com/llvm/llvm-project/commit/16e8134e7c770849a6a1b9c79fdd548a0ef99190
DIFF: https://github.com/llvm/llvm-project/commit/16e8134e7c770849a6a1b9c79fdd548a0ef99190.diff
LOG: [NFC] One more AttributeList::getAttribute(FunctionIndex) -> getFnAttr()
Added:
Modified:
llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp b/llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp
index 574524410a91..a476d3ed0909 100644
--- a/llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp
@@ -238,9 +238,9 @@ const HexagonSubtarget *
HexagonTargetMachine::getSubtargetImpl(const Function &F) const {
AttributeList FnAttrs = F.getAttributes();
Attribute CPUAttr =
- FnAttrs.getAttribute(AttributeList::FunctionIndex, "target-cpu");
+ FnAttrs.getFnAttr("target-cpu");
Attribute FSAttr =
- FnAttrs.getAttribute(AttributeList::FunctionIndex, "target-features");
+ FnAttrs.getFnAttr("target-features");
std::string CPU =
CPUAttr.isValid() ? CPUAttr.getValueAsString().str() : TargetCPU;
More information about the llvm-commits
mailing list