diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-07-28 21:07:39 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-07-28 21:07:39 +0000 |
commit | c1e39ee659dff413d9c5909a7e9fc4545ffce6c3 (patch) | |
tree | 708a30afdc880756f98ac839dab9c83e1b90787b /lib/VMCore/Function.cpp | |
parent | fe04db890b87d9ac4c4a607e6bd0035e8cc2ad6c (diff) |
Implemented cleanups as suggested by Chris:
* Use Module::getNamedFunction() to delete "main" instead of using a loop
* Compare function pointers instead of function names to determine equivalence
* Simplified creation of a 2-element vector containing zeroes
* Manually performed LICM on code
* Added an abort() in case a function we're considering occurs in something that
is not an instruction
* Use DEBUG() around code sections instead of just in a statement in a loop,
because GCC's DCE may not be good enough to completely remove it in a release
build
* Print out a command that can be directly copied-and-pasted to re-execute
* Instead of just checking if a symbol begins with a dot and fixing it
accordingly, use Mangler and fix all the problems (invalid chars in C symbol
names) entirely
* The new `main' function has external linkage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7371 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
0 files changed, 0 insertions, 0 deletions