[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Printer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jul 1 11:29:34 PDT 2003
Changes in directory llvm/lib/Analysis/DataStructure:
Printer.cpp updated: 1.55 -> 1.56
---
Log message:
Dont' print scalar nodes for ConstantPointerRefs
---
Diffs of the changes:
Index: llvm/lib/Analysis/DataStructure/Printer.cpp
diff -u llvm/lib/Analysis/DataStructure/Printer.cpp:1.55 llvm/lib/Analysis/DataStructure/Printer.cpp:1.56
--- llvm/lib/Analysis/DataStructure/Printer.cpp:1.55 Mon Jun 30 00:57:39 2003
+++ llvm/lib/Analysis/DataStructure/Printer.cpp Tue Jul 1 11:27:32 2003
@@ -8,6 +8,7 @@
#include "llvm/Analysis/DSGraph.h"
#include "llvm/Analysis/DSGraphTraits.h"
#include "llvm/Module.h"
+#include "llvm/Constants.h"
#include "llvm/Assembly/Writer.h"
#include "Support/CommandLine.h"
#include "Support/GraphWriter.h"
@@ -99,7 +100,7 @@
// Add scalar nodes to the graph...
const DSGraph::ScalarMapTy &VM = G->getScalarMap();
for (DSGraph::ScalarMapTy::const_iterator I = VM.begin(); I != VM.end();++I)
- if (!isa<GlobalValue>(I->first)) {
+ if (!isa<GlobalValue>(I->first) && !isa<ConstantPointerRef>(I->first)) {
std::stringstream OS;
WriteAsOperand(OS, I->first, false, true, CurMod);
GW.emitSimpleNode(I->first, "", OS.str());
More information about the llvm-commits
mailing list