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/ExecutionEngine.cpp | |
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/ExecutionEngine.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/ExecutionEngine.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp index 9b51e3c798f..e376b855105 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp @@ -132,7 +132,7 @@ void ExecutionEngine::StoreValueToMemory(GenericValue Val, GenericValue *Ptr, Ptr->Untyped[2] = (Val.UIntVal >> 16) & 255; Ptr->Untyped[3] = (Val.UIntVal >> 24) & 255; break; - case Type::PointerTyID: if (CurMod.has32BitPointers()) + case Type::PointerTyID: if (CurMod.getPointerSize() != Module::Pointer64) goto Store4BytesLittleEndian; case Type::DoubleTyID: case Type::ULongTyID: @@ -165,7 +165,7 @@ void ExecutionEngine::StoreValueToMemory(GenericValue Val, GenericValue *Ptr, Ptr->Untyped[1] = (Val.UIntVal >> 16) & 255; Ptr->Untyped[0] = (Val.UIntVal >> 24) & 255; break; - case Type::PointerTyID: if (CurMod.has32BitPointers()) + case Type::PointerTyID: if (CurMod.getPointerSize() != Module::Pointer64) goto Store4BytesBigEndian; case Type::DoubleTyID: case Type::ULongTyID: @@ -204,7 +204,7 @@ GenericValue ExecutionEngine::LoadValueFromMemory(GenericValue *Ptr, ((unsigned)Ptr->Untyped[2] << 16) | ((unsigned)Ptr->Untyped[3] << 24); break; - case Type::PointerTyID: if (getModule().has32BitPointers()) + case Type::PointerTyID: if (CurMod.getPointerSize() != Module::Pointer64) goto Load4BytesLittleEndian; case Type::DoubleTyID: case Type::ULongTyID: @@ -238,7 +238,7 @@ GenericValue ExecutionEngine::LoadValueFromMemory(GenericValue *Ptr, ((unsigned)Ptr->Untyped[1] << 16) | ((unsigned)Ptr->Untyped[0] << 24); break; - case Type::PointerTyID: if (getModule().has32BitPointers()) + case Type::PointerTyID: if (CurMod.getPointerSize() != Module::Pointer64) goto Load4BytesBigEndian; case Type::DoubleTyID: case Type::ULongTyID: |