diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-31 06:35:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-31 06:35:59 +0000 |
commit | bfe11108adef46a7e366d07c9d04afb88a1966a9 (patch) | |
tree | 43991c0a74d540f815b48a69ec40433d8939ec9e /include/llvm/Transforms | |
parent | 37aabf28b3ae64356b58d7e0bed2c6764bc52334 (diff) | |
download | external_llvm-bfe11108adef46a7e366d07c9d04afb88a1966a9.zip external_llvm-bfe11108adef46a7e366d07c9d04afb88a1966a9.tar.gz external_llvm-bfe11108adef46a7e366d07c9d04afb88a1966a9.tar.bz2 |
Implement code to convert %malloc and %free FUNCTION CALLS into the instruction equivalent
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1065 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r-- | include/llvm/Transforms/IPO.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h index eb7a06d..290592a 100644 --- a/include/llvm/Transforms/IPO.h +++ b/include/llvm/Transforms/IPO.h @@ -9,16 +9,24 @@ #include "llvm/Pass.h" class CleanupGCCOutput : public Pass { + Method *Malloc, *Free; // Pointers to external declarations, or null if none public: + + inline CleanupGCCOutput() : Malloc(0), Free(0) {} + // doPassInitialization - For this pass, it removes global symbol table // entries for primitive types. These are never used for linking in GCC and // they make the output uglier to look at, so we nuke them. // + // Also, initialize instance variables. + // bool doPassInitialization(Module *M); // doPerMethodWork - This method simplifies the specified method hopefully. // bool doPerMethodWork(Method *M); +private: + bool doOneCleanupPass(Method *M); }; #endif |