diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-14 05:52:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-14 05:52:17 +0000 |
commit | d2b7cec527a0efa552628378ebca7a8ca63bb45d (patch) | |
tree | 1fc447550e1b1096e5024525926176e8acdc622d /lib/ExecutionEngine/JIT | |
parent | 879dfe1c9c563d05bc210bde6ac948f6b2980206 (diff) | |
download | external_llvm-d2b7cec527a0efa552628378ebca7a8ca63bb45d.zip external_llvm-d2b7cec527a0efa552628378ebca7a8ca63bb45d.tar.gz external_llvm-d2b7cec527a0efa552628378ebca7a8ca63bb45d.tar.bz2 |
Generalize TargetData strings, to support more interesting forms of data.
Patch by Scott Michel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT')
-rw-r--r-- | lib/ExecutionEngine/JIT/JIT.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/JIT.cpp b/lib/ExecutionEngine/JIT/JIT.cpp index ca3dbb9..070947b 100644 --- a/lib/ExecutionEngine/JIT/JIT.cpp +++ b/lib/ExecutionEngine/JIT/JIT.cpp @@ -338,7 +338,7 @@ void *JIT::getOrEmitGlobalVariable(const GlobalVariable *GV) { // compilation. const Type *GlobalType = GV->getType()->getElementType(); size_t S = getTargetData()->getTypeSize(GlobalType); - size_t A = getTargetData()->getTypeAlignmentPref(GlobalType); + size_t A = getTargetData()->getPrefTypeAlignment(GlobalType); if (A <= 8) { Ptr = malloc(S); } else { |