diff options
author | Owen Anderson <resistor@mac.com> | 2006-05-03 01:29:57 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2006-05-03 01:29:57 +0000 |
commit | 20a631fde715280ecab9ae997ba7fa79434b4fe2 (patch) | |
tree | 0d724c5315fd81f33b7b09830661330efe099f9b /llvm/lib/ExecutionEngine/JIT/JIT.cpp | |
parent | 37c39b9c62c523ea324d635e1760f91754b0a371 (diff) | |
download | llvm-20a631fde715280ecab9ae997ba7fa79434b4fe2.zip llvm-20a631fde715280ecab9ae997ba7fa79434b4fe2.tar.gz llvm-20a631fde715280ecab9ae997ba7fa79434b4fe2.tar.bz2 |
Refactor TargetMachine, pushing handling of TargetData into the target-specific subclasses. This has one caller-visible change: getTargetData() now returns a pointer instead of a reference.
This fixes PR 759.
llvm-svn: 28074
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/JIT.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JIT.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp index 4d3b5a3..91c8caf 100644 --- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp +++ b/llvm/lib/ExecutionEngine/JIT/JIT.cpp @@ -302,8 +302,8 @@ void *JIT::getOrEmitGlobalVariable(const GlobalVariable *GV) { // actually initialize the global after current function has finished // compilation. const Type *GlobalType = GV->getType()->getElementType(); - size_t S = getTargetData().getTypeSize(GlobalType); - size_t A = getTargetData().getTypeAlignment(GlobalType); + size_t S = getTargetData()->getTypeSize(GlobalType); + size_t A = getTargetData()->getTypeAlignment(GlobalType); if (A <= 8) { Ptr = malloc(S); } else { |