From 2b9926fc8eceb304bafe0e77a8876579d392f7bb Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 2 Nov 2003 22:27:28 +0000 Subject: All DSGraphs keep a reference to the targetdata they are created with. This is used to eliminate the hard coded, hacked in, sparc specific, global TargetData. Changing the TargetData used to actually match the code fixes problems, and eliminates a crash. llvm-svn: 9659 --- llvm/lib/Analysis/DataStructure/Steensgaard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Analysis/DataStructure/Steensgaard.cpp') diff --git a/llvm/lib/Analysis/DataStructure/Steensgaard.cpp b/llvm/lib/Analysis/DataStructure/Steensgaard.cpp index 29bbf3a3fb1..8bf917f0483 100644 --- a/llvm/lib/Analysis/DataStructure/Steensgaard.cpp +++ b/llvm/lib/Analysis/DataStructure/Steensgaard.cpp @@ -110,8 +110,8 @@ bool Steens::run(Module &M) { LocalDataStructures &LDS = getAnalysis(); // Create a new, empty, graph... - ResultGraph = new DSGraph(); - GlobalsGraph = new DSGraph(); + ResultGraph = new DSGraph(getTargetData()); + GlobalsGraph = new DSGraph(getTargetData()); ResultGraph->setGlobalsGraph(GlobalsGraph); ResultGraph->setPrintAuxCalls(); -- cgit v1.2.3