aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-04 05:20:12 +0000
committerChris Lattner <sabre@nondot.org>2002-12-04 05:20:12 +0000
commit08053e46be0c7f2024b3df7bfad822f71ac94de3 (patch)
tree39c4bb886f35a85e48a7450f4b2886d296621a27 /include
parent41db76dec26783a2664bfc5aa31b7110026cdaaf (diff)
downloadexternal_llvm-08053e46be0c7f2024b3df7bfad822f71ac94de3.zip
external_llvm-08053e46be0c7f2024b3df7bfad822f71ac94de3.tar.gz
external_llvm-08053e46be0c7f2024b3df7bfad822f71ac94de3.tar.bz2
Expose target data through a method for uniformity
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4901 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetMachine.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h
index 3d0b8d6..02d5788 100644
--- a/include/llvm/Target/TargetMachine.h
+++ b/include/llvm/Target/TargetMachine.h
@@ -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