mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Remove MachineModuleInfo::UsedFunctions as it has no users.
It hasn't been used since r130964. This also removes MachineModuleInfo::isUsedFunction and MachineModuleInfo::AnalyzeModule, both of which were only there to support UsedFunctions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239501 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -318,23 +318,6 @@ void MachineModuleInfo::EndFunction() {
|
||||
VariableDbgInfos.clear();
|
||||
}
|
||||
|
||||
/// AnalyzeModule - Scan the module for global debug information.
|
||||
///
|
||||
void MachineModuleInfo::AnalyzeModule(const Module &M) {
|
||||
// Insert functions in the llvm.used array (but not llvm.compiler.used) into
|
||||
// UsedFunctions.
|
||||
const GlobalVariable *GV = M.getGlobalVariable("llvm.used");
|
||||
if (!GV || !GV->hasInitializer()) return;
|
||||
|
||||
// Should be an array of 'i8*'.
|
||||
const ConstantArray *InitList = cast<ConstantArray>(GV->getInitializer());
|
||||
|
||||
for (unsigned i = 0, e = InitList->getNumOperands(); i != e; ++i)
|
||||
if (const Function *F =
|
||||
dyn_cast<Function>(InitList->getOperand(i)->stripPointerCasts()))
|
||||
UsedFunctions.insert(F);
|
||||
}
|
||||
|
||||
//===- Address of Block Management ----------------------------------------===//
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user