summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-14 05:52:17 +0000
committerChris Lattner <sabre@nondot.org>2007-02-14 05:52:17 +0000
commit945e437c65a6e354bdb090ccabf4a3d374edf231 (patch)
treebc114a3c6f82141eff39a63020dc4852b866ad42 /llvm/lib/ExecutionEngine
parent0c5db231198bca3c416790edab01d47ef7ae6154 (diff)
downloadbcm5719-llvm-945e437c65a6e354bdb090ccabf4a3d374edf231.tar.gz
bcm5719-llvm-945e437c65a6e354bdb090ccabf4a3d374edf231.zip
Generalize TargetData strings, to support more interesting forms of data.
Patch by Scott Michel. llvm-svn: 34266
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JIT.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
index ca3dbb96a7b..070947bc1da 100644
--- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp
+++ b/llvm/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 {
OpenPOWER on IntegriCloud