diff options
| author | Reid Kleckner <rnk@google.com> | 2018-12-13 01:33:20 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2018-12-13 01:33:20 +0000 |
| commit | 566a328da57f9670e536f191646c3eb08dfba05d (patch) | |
| tree | 3cdd2d1a065bda1208c1c56dd91e1a495f6f59ba /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 8f04bba0e5714f154d79ab04dfac62fd5fd8ff07 (diff) | |
| download | clang-566a328da57f9670e536f191646c3eb08dfba05d.tar.gz | |
Remove unused Args parameter from EmitFunctionBody, NFC
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 3f898b19e6..f012384f3d 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -1202,8 +1202,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, LargestVectorWidth = VecWidth->getVectorWidth(); } -void CodeGenFunction::EmitFunctionBody(FunctionArgList &Args, - const Stmt *Body) { +void CodeGenFunction::EmitFunctionBody(const Stmt *Body) { incrementProfileCounter(Body); if (const CompoundStmt *S = dyn_cast<CompoundStmt>(Body)) EmitCompoundStmtWithoutScope(*S); @@ -1371,7 +1370,7 @@ void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn, // copy-constructors. emitImplicitAssignmentOperatorBody(Args); } else if (Body) { - EmitFunctionBody(Args, Body); + EmitFunctionBody(Body); } else llvm_unreachable("no definition for emitted function"); |
