diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-02 22:27:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-02 22:27:28 +0000 |
commit | 15869aa2c717c356f62c04d85b73450aaabfee16 (patch) | |
tree | 2914724bfba1432a239d96ddedd9b535276aea1c /lib/Analysis/DataStructure/Steensgaard.cpp | |
parent | dbfe36e51eff9324ad5abf7af9a852de07f04ef9 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9659 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/Steensgaard.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/Steensgaard.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/DataStructure/Steensgaard.cpp b/lib/Analysis/DataStructure/Steensgaard.cpp index 29bbf3a3fb..8bf917f048 100644 --- a/lib/Analysis/DataStructure/Steensgaard.cpp +++ b/lib/Analysis/DataStructure/Steensgaard.cpp @@ -110,8 +110,8 @@ bool Steens::run(Module &M) { LocalDataStructures &LDS = getAnalysis<LocalDataStructures>(); // Create a new, empty, graph... - ResultGraph = new DSGraph(); - GlobalsGraph = new DSGraph(); + ResultGraph = new DSGraph(getTargetData()); + GlobalsGraph = new DSGraph(getTargetData()); ResultGraph->setGlobalsGraph(GlobalsGraph); ResultGraph->setPrintAuxCalls(); |