diff options
author | Pete Cooper <peter_cooper@apple.com> | 2015-06-11 01:04:56 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2015-06-11 01:04:56 +0000 |
commit | 7cbe58d3c59010af02a13448b10abfbe2cc0fc39 (patch) | |
tree | 8ebbe25b29a9eb43311ce5ce47bb49d8e0afac93 /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | ac936ff5ab80256b7c6484b9b0252a451d2e71b9 (diff) | |
download | bcm5719-llvm-7cbe58d3c59010af02a13448b10abfbe2cc0fc39.tar.gz bcm5719-llvm-7cbe58d3c59010af02a13448b10abfbe2cc0fc39.zip |
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.
llvm-svn: 239501
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineModuleInfo.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp index eec984f53b9..5c544f163fc 100644 --- a/llvm/lib/CodeGen/MachineModuleInfo.cpp +++ b/llvm/lib/CodeGen/MachineModuleInfo.cpp @@ -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 ----------------------------------------===// |