[IR] Add getArg() method to Function class
authorTeresa Johnson <tejohnson@google.com>
Thu, 1 Aug 2019 15:31:40 +0000 (15:31 +0000)
committerTeresa Johnson <tejohnson@google.com>
Thu, 1 Aug 2019 15:31:40 +0000 (15:31 +0000)
commit01dcdcdd92ef25681719a852e639abdd7babae19
tree8ef030be05d91ed014a29cb9edd31ca27975a399
parent3c26163d1a18eb9a324a69ea1eb988eb3289c20e
[IR] Add getArg() method to Function class

Adds a method which, when called with function.getArg(i), returns an
Argument* to the i'th argument.

Patch by Henry Wildermuth

Differential Revision: https://reviews.llvm.org/D64925

llvm-svn: 367576
llvm/include/llvm/IR/Function.h
llvm/unittests/IR/FunctionTest.cpp