mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Rename Function::getEntryNode -> getEntryBlock
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8625 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -75,7 +75,7 @@ bool SROA::performPromotion(Function &F) {
|
||||
std::vector<AllocaInst*> Allocas;
|
||||
const TargetData &TD = getAnalysis<TargetData>();
|
||||
|
||||
BasicBlock &BB = F.getEntryNode(); // Get the entry node for the function
|
||||
BasicBlock &BB = F.getEntryBlock(); // Get the entry node for the function
|
||||
|
||||
bool Changed = false;
|
||||
|
||||
@@ -108,7 +108,7 @@ bool SROA::performScalarRepl(Function &F) {
|
||||
std::vector<AllocationInst*> WorkList;
|
||||
|
||||
// Scan the entry basic block, adding any alloca's and mallocs to the worklist
|
||||
BasicBlock &BB = F.getEntryNode();
|
||||
BasicBlock &BB = F.getEntryBlock();
|
||||
for (BasicBlock::iterator I = BB.begin(), E = BB.end(); I != E; ++I)
|
||||
if (AllocationInst *A = dyn_cast<AllocationInst>(I))
|
||||
WorkList.push_back(A);
|
||||
|
Reference in New Issue
Block a user