[llvm-commits] [poolalloc] r49450 - /poolalloc/trunk/lib/DSA/StdLibPass.cpp
John Criswell
criswell at uiuc.edu
Wed Apr 9 14:11:11 PDT 2008
Author: criswell
Date: Wed Apr 9 16:11:11 2008
New Revision: 49450
URL: http://llvm.org/viewvc/llvm-project?rev=49450&view=rev
Log:
Added support for strdup().
Modified:
poolalloc/trunk/lib/DSA/StdLibPass.cpp
Modified: poolalloc/trunk/lib/DSA/StdLibPass.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/StdLibPass.cpp?rev=49450&r1=49449&r2=49450&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/StdLibPass.cpp (original)
+++ poolalloc/trunk/lib/DSA/StdLibPass.cpp Wed Apr 9 16:11:11 2008
@@ -58,6 +58,9 @@
->setHeapMarker()->setModifiedMarker();
Graph.getNodeForValue(I->arg_begin()).getNode()->clearNodeFlags()
->mergeWith(Graph.getReturnNodeFor(*I), 0);
+ } else if (Name == "strdup") {
+ Graph.getReturnNodeFor(*I).getNode()->clearNodeFlags()
+ ->setHeapMarker()->setModifiedMarker();
} else if (Name == "free") {
Graph.getNodeForValue(&*I->arg_begin()).getNode()->clearNodeFlags()
->setHeapMarker()->setModifiedMarker();
More information about the llvm-commits
mailing list