diff options
| author | Tim Northover <tnorthover@apple.com> | 2016-09-21 12:57:35 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2016-09-21 12:57:35 +0000 |
| commit | 862758ec14741db27ef4594b1ba26ce5825de8a6 (patch) | |
| tree | dc7dff82ce510b2e4867c91dce67040317d2b47f /llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp | |
| parent | 2506cb4ddb05a5b1eee261aca2c6bfaa9bca348d (diff) | |
| download | bcm5719-llvm-862758ec14741db27ef4594b1ba26ce5825de8a6.tar.gz bcm5719-llvm-862758ec14741db27ef4594b1ba26ce5825de8a6.zip | |
GlobalISel: pass Function to lowerFormalArguments directly (NFC).
The only implementation that exists immediately looks it up anyway, and the
information is needed to handle various parameter attributes (stored on the
function itself).
llvm-svn: 282068
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp index 4d4a696c07b..155a39a044e 100644 --- a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp +++ b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp @@ -556,8 +556,7 @@ bool IRTranslator::runOnMachineFunction(MachineFunction &MF) { SmallVector<unsigned, 8> VRegArgs; for (const Argument &Arg: F.args()) VRegArgs.push_back(getOrCreateVReg(Arg)); - bool Succeeded = - CLI->lowerFormalArguments(MIRBuilder, F.getArgumentList(), VRegArgs); + bool Succeeded = CLI->lowerFormalArguments(MIRBuilder, F, VRegArgs); if (!Succeeded) { if (!TPC->isGlobalISelAbortEnabled()) { MIRBuilder.getMF().getProperties().set( |

