[llvm-commits] CVS: llvm/lib/Analysis/IPA/IPModRef.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Jan 23 16:07:04 PST 2003
Changes in directory llvm/lib/Analysis/IPA:
IPModRef.cpp updated: 1.11 -> 1.12
---
Log message:
* Eliminate boolean arguments in favor of using enums
---
Diffs of the changes:
Index: llvm/lib/Analysis/IPA/IPModRef.cpp
diff -u llvm/lib/Analysis/IPA/IPModRef.cpp:1.11 llvm/lib/Analysis/IPA/IPModRef.cpp:1.12
--- llvm/lib/Analysis/IPA/IPModRef.cpp:1.11 Wed Nov 27 11:37:46 2002
+++ llvm/lib/Analysis/IPA/IPModRef.cpp Thu Jan 23 16:06:33 2003
@@ -175,7 +175,7 @@
assert(0 && "See error message");
// Remove dead nodes aggressively to match the caller's original graph.
- Result->removeDeadNodes();
+ Result->removeDeadNodes(DSGraph::KeepUnreachableGlobals);
// Step #4: Return the clone + the mapping (by ref)
return Result;
@@ -393,7 +393,7 @@
// The memory for this graph clone will be freed by FunctionModRefInfo.
DSGraph* funcTDGraph =
new DSGraph(getAnalysis<TDDataStructures>().getDSGraph(func));
- funcTDGraph->removeDeadNodes();
+ funcTDGraph->removeDeadNodes(DSGraph::KeepUnreachableGlobals);
funcInfo = new FunctionModRefInfo(func, *this, funcTDGraph); //auto-insert
funcInfo->computeModRef(func); // computes the mod/ref info
More information about the llvm-commits
mailing list