Funcresolve no longer performs nicification of resolved functions
[oota-llvm.git] / tools / gccld / gccld.cpp
index f04817fdf3d9d607dbbeac060af8939c35442a09..eadb5f43403ba3cbea37b6e633c6aedc6de9871d 100644 (file)
@@ -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";