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 /include/llvm/Analysis/DataStructure/DataStructure.h | |
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 'include/llvm/Analysis/DataStructure/DataStructure.h')
-rw-r--r-- | include/llvm/Analysis/DataStructure/DataStructure.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DataStructure/DataStructure.h b/include/llvm/Analysis/DataStructure/DataStructure.h index f32d41f26e..afea126c07 100644 --- a/include/llvm/Analysis/DataStructure/DataStructure.h +++ b/include/llvm/Analysis/DataStructure/DataStructure.h @@ -15,6 +15,7 @@ #define LLVM_ANALYSIS_DATA_STRUCTURE_H #include "llvm/Pass.h" +#include "llvm/Target/TargetData.h" #include "Support/hash_set" class Type; @@ -69,6 +70,7 @@ public: // getAnalysisUsage - This obviously provides a data structure graph. virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesAll(); + AU.addRequired<TargetData>(); } }; |