aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/ScalarReplAggregates.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-20 14:39:18 +0000
committerChris Lattner <sabre@nondot.org>2003-09-20 14:39:18 +0000
commit02a3be020a6b4eedb4b489959997d23a22cdf22e (patch)
tree39fec120d7a18969260d3b96afb29bdecbcf9155 /lib/Transforms/Scalar/ScalarReplAggregates.cpp
parent894707117e718b38cdd5fbbf7b2d2ccfcbafe98b (diff)
downloadexternal_llvm-02a3be020a6b4eedb4b489959997d23a22cdf22e.zip
external_llvm-02a3be020a6b4eedb4b489959997d23a22cdf22e.tar.gz
external_llvm-02a3be020a6b4eedb4b489959997d23a22cdf22e.tar.bz2
Rename Function::getEntryNode -> getEntryBlock
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8625 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/ScalarReplAggregates.cpp')
-rw-r--r--lib/Transforms/Scalar/ScalarReplAggregates.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp
index 2a6bddf..adcbaff 100644
--- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp
+++ b/lib/Transforms/Scalar/ScalarReplAggregates.cpp
@@ -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);