A small refactoring + adding comments.
authorEli Bendersky <eliben@google.com>
Thu, 28 Feb 2013 23:09:18 +0000 (23:09 +0000)
committerEli Bendersky <eliben@google.com>
Thu, 28 Feb 2013 23:09:18 +0000 (23:09 +0000)
commit6437d38a0deb0cd51607dd624a70d093ae347156
tree22e62b0a7f02ce1dfb3a1ee4d855237926f723be
parent40c81fe501ac99ff3f3ec004ce9e5a526d07e441
A small refactoring + adding comments.

SelectionDAGIsel::LowerArguments needs a function, not a basic block. So it
makes sense to pass it the function instead of extracting a basic-block from
the function and then tossing it. This is also more self-documenting (functions
have arguments, BBs don't).

In addition, added comments to a couple of Select* methods.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176305 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAGISel.h
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp