diff options
author | Chris Lattner <sabre@nondot.org> | 2003-09-20 14:39:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-09-20 14:39:18 +0000 |
commit | 02a3be020a6b4eedb4b489959997d23a22cdf22e (patch) | |
tree | 39fec120d7a18969260d3b96afb29bdecbcf9155 /lib/Transforms/Instrumentation | |
parent | 894707117e718b38cdd5fbbf7b2d2ccfcbafe98b (diff) | |
download | external_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/Instrumentation')
-rw-r--r-- | lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Instrumentation/TraceValues.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp b/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp index e94f0b7..aa46048 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp +++ b/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp @@ -228,7 +228,7 @@ bool ProfilePaths::runOnFunction(Function &F){ // insert initialization code in first (entry) BB // this includes initializing r and count - insertInTopBB(&F.getEntryNode(),numPaths, rVar, threshold); + insertInTopBB(&F.getEntryBlock(), numPaths, rVar, threshold); //now process the graph: get path numbers, //get increments along different paths, diff --git a/lib/Transforms/Instrumentation/TraceValues.cpp b/lib/Transforms/Instrumentation/TraceValues.cpp index 375a45d..4579972 100644 --- a/lib/Transforms/Instrumentation/TraceValues.cpp +++ b/lib/Transforms/Instrumentation/TraceValues.cpp @@ -348,7 +348,7 @@ static void TraceValuesAtBBExit(BasicBlock *BB, static inline void InsertCodeToShowFunctionEntry(Function &F, Function *Printf, Function* HashPtrToSeqNum){ // Get an iterator to point to the insertion location - BasicBlock &BB = F.getEntryNode(); + BasicBlock &BB = F.getEntryBlock(); Instruction *InsertPos = BB.begin(); std::ostringstream OutStr; @@ -398,7 +398,7 @@ bool InsertTraceCode::runOnFunction(Function &F) { // Push a pointer set for recording alloca'd pointers at entry. if (!DisablePtrHashing) new CallInst(externalFuncs.PushOnEntryFunc, vector<Value*>(), "", - F.getEntryNode().begin()); + F.getEntryBlock().begin()); for (Function::iterator BB = F.begin(); BB != F.end(); ++BB) { if (isa<ReturnInst>(BB->getTerminator())) |