summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-16 01:24:12 +0000
committerChris Lattner <sabre@nondot.org>2006-08-16 01:24:12 +0000
commit0621caef44e97026fb42a03be1d259c9041eee01 (patch)
tree32112126e647e629a953d5308ec761d69dc56e6b /llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
parent9ed9ddeae41cb88d46d1030c2a7a5b644d4d0a5f (diff)
downloadbcm5719-llvm-0621caef44e97026fb42a03be1d259c9041eee01.tar.gz
bcm5719-llvm-0621caef44e97026fb42a03be1d259c9041eee01.zip
initial changes to support JIT'ing from multiple module providers, implicitly
linking the program on the fly. llvm-svn: 29721
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
index 77b7b266674..67fa983d9ef 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
@@ -313,7 +313,7 @@ GenericValue lle_X_sprintf(FunctionType *M, const vector<GenericValue> &Args) {
case 'x': case 'X':
if (HowLong >= 1) {
if (HowLong == 1 &&
- TheInterpreter->getModule().getPointerSize()==Module::Pointer64 &&
+ TheInterpreter->getTargetData()->getPointerSizeInBits() == 64 &&
sizeof(long) < sizeof(int64_t)) {
// Make sure we use %lld with a 64 bit argument because we might be
// compiling LLI on a 32 bit compiler.
OpenPOWER on IntegriCloud