Expose target data through a method for uniformity

llvm-svn: 4901
This commit is contained in:
Chris Lattner 2002-12-04 05:20:12 +00:00
parent 6a716900ba
commit 4843ebc4ba
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ public:
virtual const MachineFrameInfo& getFrameInfo() const = 0;
virtual const MachineCacheInfo& getCacheInfo() const = 0;
virtual const MachineOptInfo& getOptInfo() const = 0;
const TargetData &getTargetData() const { return DataLayout; }
/// getRegisterInfo - If register information is available, return it. If
/// not, return null. This is kept separate from RegInfo until RegInfo gets