mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Remove unused method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1368 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -32,14 +32,6 @@ struct DeadCodeElimination : public Pass {
|
|||||||
//
|
//
|
||||||
static bool RemoveUnusedGlobalValues(Module *M);
|
static bool RemoveUnusedGlobalValues(Module *M);
|
||||||
|
|
||||||
// RemoveUnusedGlobalValuesAfterLink - This function is only to be used after
|
|
||||||
// linking the application. It removes global variables with initializers and
|
|
||||||
// unreachable methods. This should only be used after an application is
|
|
||||||
// linked, when it is not possible for an external entity to make a global
|
|
||||||
// value live again.
|
|
||||||
//
|
|
||||||
// static bool RemoveUnusedGlobalValuesAfterLink(Module *M); // TODO
|
|
||||||
|
|
||||||
// Pass Interface...
|
// Pass Interface...
|
||||||
virtual bool doPassInitialization(Module *M) {
|
virtual bool doPassInitialization(Module *M) {
|
||||||
return RemoveUnusedGlobalValues(M);
|
return RemoveUnusedGlobalValues(M);
|
||||||
@@ -63,7 +55,6 @@ struct AgressiveDCE : public Pass {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// SimplifyCFG - This function is used to do simplification of a CFG. For
|
// SimplifyCFG - This function is used to do simplification of a CFG. For
|
||||||
// example, it adjusts branches to branches to eliminate the extra hop, it
|
// example, it adjusts branches to branches to eliminate the extra hop, it
|
||||||
// eliminates unreachable basic blocks, and does other "peephole" optimization
|
// eliminates unreachable basic blocks, and does other "peephole" optimization
|
||||||
|
Reference in New Issue
Block a user