OSDN Git Service

Simplify some Verifier attribute checks with AttributeSet
authorReid Kleckner <rnk@google.com>
Fri, 14 Apr 2017 00:06:06 +0000 (00:06 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 14 Apr 2017 00:06:06 +0000 (00:06 +0000)
commitfefad770b8bdec8afeba5d52f387bb14673e9c77
tree01e6501ce553fef8d6803ca1b25a5dfa279439a0
parentdc1a361ccdc710f2ec4b77d054e132ce84b06904
Simplify some Verifier attribute checks with AttributeSet

Now that we have a type that can represent the attributes on a single
return, function, or parameter, we can pass it around directly rather
than passing around AttributeList and Idx. Removes some more one-based
argument attribute index counting.

NFC

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