From dccb6d017bfc88eff013e08e6b28d90b357996b5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 19 Jun 2003 17:03:51 +0000 Subject: [PATCH] Funcresolve no longer performs nicification of resolved functions instcombine does this git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6787 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/gccld/gccld.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/gccld/gccld.cpp b/tools/gccld/gccld.cpp index f04817fdf3d..eadb5f43403 100644 --- a/tools/gccld/gccld.cpp +++ b/tools/gccld/gccld.cpp @@ -404,6 +404,11 @@ int main(int argc, char **argv) { // Passes.add(createGlobalDCEPass()); + // The FuncResolve pass may leave cruft around if functions were prototyped + // differently than they were defined. Remove this cruft. + // + Passes.add(createInstructionCombiningPass()); + // Add the pass that writes bytecode to the output file... std::string RealBytecodeOutput = OutputFilename; if (!LinkAsLibrary) RealBytecodeOutput += ".bc"; -- 2.34.1