[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Printer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 25 17:07:37 PST 2004
Changes in directory llvm/lib/Analysis/DataStructure:
Printer.cpp updated: 1.65 -> 1.66
---
Log message:
Try harder to get symbol info
---
Diffs of the changes: (+3 -0)
Index: llvm/lib/Analysis/DataStructure/Printer.cpp
diff -u llvm/lib/Analysis/DataStructure/Printer.cpp:1.65 llvm/lib/Analysis/DataStructure/Printer.cpp:1.66
--- llvm/lib/Analysis/DataStructure/Printer.cpp:1.65 Sat Feb 21 16:27:31 2004
+++ llvm/lib/Analysis/DataStructure/Printer.cpp Wed Feb 25 17:06:30 2004
@@ -39,6 +39,9 @@
static std::string getCaption(const DSNode *N, const DSGraph *G) {
std::stringstream OS;
Module *M = 0;
+
+ if (G) G = N->getParentGraph();
+
// Get the module from ONE of the functions in the graph it is available.
if (G && !G->getReturnNodes().empty())
M = G->getReturnNodes().begin()->first->getParent();
More information about the llvm-commits
mailing list