mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-15 22:25:31 +00:00
Switch from using CallInst's to represent call sites to using the LLVM
CallSite class. Now we can represent function calls by invoke instructions too! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8629 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -709,7 +709,7 @@ void DSNode::mergeWith(const DSNodeHandle &NH, unsigned Offset) {
|
||||
|
||||
// Define here to avoid including iOther.h and BasicBlock.h in DSGraph.h
|
||||
Function &DSCallSite::getCaller() const {
|
||||
return *Inst->getParent()->getParent();
|
||||
return *Site.getInstruction()->getParent()->getParent();
|
||||
}
|
||||
|
||||
|
||||
@@ -1044,7 +1044,7 @@ DSCallSite DSGraph::getCallSiteForArguments(Function &F) const {
|
||||
if (isPointerType(I->getType()))
|
||||
Args.push_back(getScalarMap().find(I)->second);
|
||||
|
||||
return DSCallSite(*(CallInst*)0, getReturnNodeFor(F), &F, Args);
|
||||
return DSCallSite(CallSite(), getReturnNodeFor(F), &F, Args);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user