[llvm-commits] CVS: llvm/tools/lli/Interpreter/ExternalFunctions.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Apr 25 13:29:01 PDT 2003
Changes in directory llvm/tools/lli/Interpreter:
ExternalFunctions.cpp updated: 1.48 -> 1.49
---
Log message:
Only do the %ld -> %lld promotion when running a 64 bit bytecode on a 32 bit host
---
Diffs of the changes:
Index: llvm/tools/lli/Interpreter/ExternalFunctions.cpp
diff -u llvm/tools/lli/Interpreter/ExternalFunctions.cpp:1.48 llvm/tools/lli/Interpreter/ExternalFunctions.cpp:1.49
--- llvm/tools/lli/Interpreter/ExternalFunctions.cpp:1.48 Fri Apr 25 13:23:38 2003
+++ llvm/tools/lli/Interpreter/ExternalFunctions.cpp Fri Apr 25 13:28:44 2003
@@ -377,7 +377,8 @@
case 'u': case 'o':
case 'x': case 'X':
if (HowLong >= 1) {
- if (HowLong == 1) {
+ if (HowLong == 1 && TheInterpreter->getModule().has64BitPointers() &&
+ 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.
unsigned Size = strlen(FmtBuf);
More information about the llvm-commits
mailing list