]> granicus.if.org Git - llvm/commit
[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)
commit3203cc2be6ccf7817e1780d45e3e31ed01f89a77
tree33419c2dfa38fbd4ad397c709c4c26bed4f81c5b
parent7d6377b68a98488031725834ffb732e520a26de5
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367576 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Function.h
unittests/IR/FunctionTest.cpp