mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
moves doInitialization and doFinalization to the Pass class and removes some unreachable code in MachineModuleInfo
reviewed by Evan Cheng <evan.cheng@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169164 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -281,21 +281,6 @@ MachineModuleInfo::~MachineModuleInfo() {
|
||||
AddrLabelSymbols = 0;
|
||||
}
|
||||
|
||||
/// doInitialization - Initialize the state for a new module.
|
||||
///
|
||||
bool MachineModuleInfo::doInitialization() {
|
||||
assert(AddrLabelSymbols == 0 && "Improperly initialized");
|
||||
return false;
|
||||
}
|
||||
|
||||
/// doFinalization - Tear down the state after completion of a module.
|
||||
///
|
||||
bool MachineModuleInfo::doFinalization() {
|
||||
delete AddrLabelSymbols;
|
||||
AddrLabelSymbols = 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
/// EndFunction - Discard function meta information.
|
||||
///
|
||||
void MachineModuleInfo::EndFunction() {
|
||||
|
Reference in New Issue
Block a user