[llvm-commits] CVS: llvm/tools/lli/Interpreter/ExternalFunctions.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 24 09:03:01 PDT 2003


Changes in directory llvm/tools/lli/Interpreter:

ExternalFunctions.cpp updated: 1.56 -> 1.57

---
Log message:

Add preliminary support for "any" pointersize/endianness.  This will need 
to change soon though.



---
Diffs of the changes:

Index: llvm/tools/lli/Interpreter/ExternalFunctions.cpp
diff -u llvm/tools/lli/Interpreter/ExternalFunctions.cpp:1.56 llvm/tools/lli/Interpreter/ExternalFunctions.cpp:1.57
--- llvm/tools/lli/Interpreter/ExternalFunctions.cpp:1.56	Mon Aug 18 09:38:36 2003
+++ llvm/tools/lli/Interpreter/ExternalFunctions.cpp	Sun Aug 24 09:02:47 2003
@@ -308,7 +308,8 @@
       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.





More information about the llvm-commits mailing list