mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 06:33:21 +00:00
stupid stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27821 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0cafa92371
commit
92e2196f0b
@ -591,8 +591,9 @@ void GraphBuilder::visitCallSite(CallSite CS) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (F->getName() == "calloc" || F->getName() == "posix_memalign" ||
|
if ((F->isExternal() && F->getName() == "calloc")
|
||||||
F->getName() == "memalign" || F->getName() == "valloc") {
|
|| F->getName() == "posix_memalign"
|
||||||
|
|| F->getName() == "memalign" || F->getName() == "valloc") {
|
||||||
setDestTo(*CS.getInstruction(),
|
setDestTo(*CS.getInstruction(),
|
||||||
createNode()->setHeapNodeMarker()->setModifiedMarker());
|
createNode()->setHeapNodeMarker()->setModifiedMarker());
|
||||||
return;
|
return;
|
||||||
@ -611,7 +612,10 @@ void GraphBuilder::visitCallSite(CallSite CS) {
|
|||||||
if (DSNode *N = RetNH.getNode())
|
if (DSNode *N = RetNH.getNode())
|
||||||
N->setModifiedMarker()->setReadMarker();
|
N->setModifiedMarker()->setReadMarker();
|
||||||
return;
|
return;
|
||||||
|
} else if (F->getName() == "free") {
|
||||||
|
// Mark that the node is written to...
|
||||||
|
if (DSNode *N = getValueDest(**CS.arg_begin()).getNode())
|
||||||
|
N->setModifiedMarker()->setHeapNodeMarker();
|
||||||
} else if (F->getName() == "atoi" || F->getName() == "atof" ||
|
} else if (F->getName() == "atoi" || F->getName() == "atof" ||
|
||||||
F->getName() == "atol" || F->getName() == "atoll" ||
|
F->getName() == "atol" || F->getName() == "atoll" ||
|
||||||
F->getName() == "remove" || F->getName() == "unlink" ||
|
F->getName() == "remove" || F->getName() == "unlink" ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user