Cleanup patch:
authorBill Wendling <isanbard@gmail.com>
Thu, 18 Apr 2013 20:17:28 +0000 (20:17 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 18 Apr 2013 20:17:28 +0000 (20:17 +0000)
commit8a6a7bb6a601061031cddd77129532a3b467300b
treeef2ec979b584f8ae34fa91952a3bf2bc01d45357
parentbb1b63c48397a3bac5d00f2ac9d33cc14efd714c
Cleanup patch:

Semantics of parameters named Index and Idx were inconsistent between
"include/llvm/IR/Attributes.h", "lib/IR/AttributeImpl.h" and
"lib/IR/Attributes.cpp": sometimes these were fixed 1-based indexes of IR
parameters (or AttributeSet::ReturnIndex for IR return values or
AttributeSet::FunctionIndex for IR functions), other times they were the
internal slot for storage in the underlying AttributeSetImpl. I renamed usage of
the former to "Index" and usage of the latter to "Slot" ("Slot" was already
being used consistently for the latter in a subset of cases)

Patch by Stephen Lin!

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