]> granicus.if.org Git - llvm/commit
Remove AttributeSetNode::get(AttributeList, unsigned) and sink constructor
authorReid Kleckner <rnk@google.com>
Mon, 10 Apr 2017 23:46:08 +0000 (23:46 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 10 Apr 2017 23:46:08 +0000 (23:46 +0000)
commite937c5e12f14f4d3fb4ba1720734bc490737afe4
treeaee63d2275f6d79585aee5ac58e9d34093d4734e
parent7dde8e89fc9e76729f9420314597395d1b47431b
Remove AttributeSetNode::get(AttributeList, unsigned) and sink constructor

The getter was equivalent to AttributeList::getAttributes(unsigned),
which seems like a better way to express getting the AttributeSet for a
given index. This static helper was only used in one place anyway.

The constructor doesn't benefit from inlining and doesn't need to be in
a header.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299900 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/AttributeSetNode.h
lib/IR/Attributes.cpp
lib/IR/Core.cpp