diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-24 14:02:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-24 14:02:47 +0000 |
commit | 479854091aee9ba626fca8dc1c6e86e49e5c808b (patch) | |
tree | 9c8a38511be38da94014591dc522673f8c6f5cce /llvm/lib/ExecutionEngine/Interpreter | |
parent | b14924009691f05ffcdd9fc262ffa6699ec4475a (diff) | |
download | bcm5719-llvm-479854091aee9ba626fca8dc1c6e86e49e5c808b.tar.gz bcm5719-llvm-479854091aee9ba626fca8dc1c6e86e49e5c808b.zip |
Add preliminary support for "any" pointersize/endianness. This will need
to change soon though.
llvm-svn: 8123
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index 73deed9ab26..d24557abe05 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -308,7 +308,8 @@ GenericValue lle_X_sprintf(FunctionType *M, const vector<GenericValue> &Args) { case 'u': case 'o': case 'x': case 'X': if (HowLong >= 1) { - if (HowLong == 1 && TheInterpreter->getModule().has64BitPointers() && + if (HowLong == 1 && + TheInterpreter->getModule().getPointerSize()==Module::Pointer64 && sizeof(long) < sizeof(long long)) { // Make sure we use %lld with a 64 bit argument because we might be // compiling LLI on a 32 bit compiler. |