diff --git a/tools/gccld/gccld.cpp b/tools/gccld/gccld.cpp index 2fae2020308..f04817fdf3d 100644 --- a/tools/gccld/gccld.cpp +++ b/tools/gccld/gccld.cpp @@ -396,6 +396,10 @@ int main(int argc, char **argv) { Passes.add(createInternalizePass()); } + // Remove unused arguments from functions... + // + Passes.add(createDeadArgEliminationPass()); + // Now that we have optimized the program, discard unreachable functions... // Passes.add(createGlobalDCEPass());