mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +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:
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user