1 //===- llvm/Transforms/CleanupGCCOutput.h - Cleanup GCC Output ---*- C++ -*--=//
3 // These passes are used to cleanup the output of GCC. GCC's output is
4 // unneccessarily gross for a couple of reasons. This pass does the following
5 // things to try to clean it up:
7 // * Eliminate names for GCC types that we know can't be needed by the user.
8 // * Eliminate names for types that are unused in the entire translation unit
9 // * Fix various problems that we might have in PHI nodes and casts
10 // * Link uses of 'void %foo(...)' to 'void %foo(sometypes)'
12 // Note: This code produces dead declarations, it is a good idea to run DCE
15 //===----------------------------------------------------------------------===//
17 #ifndef LLVM_TRANSFORMS_CLEANUPGCCOUTPUT_H
18 #define LLVM_TRANSFORMS_CLEANUPGCCOUTPUT_H
22 // CleanupGCCOutputPass - Perform all of the function body transformations.
24 Pass *createCleanupGCCOutputPass();
27 // FunctionResolvingPass - Go over the functions that are in the module and
28 // look for functions that have the same name. More often than not, there will
31 // void "foo"(int, int)
32 // because of the way things are declared in C. If this is the case, patch
35 // This is an interprocedural pass.
37 Pass *createFunctionResolvingPass();