diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-22 18:10:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-22 18:10:32 +0000 |
commit | cebde8d74c7a4cff2ddf49b6637e6be2b9275c6f (patch) | |
tree | f1d32ced4486db7ef21f6b0ad8c2eea916a2bd9a /llvm | |
parent | 085ca7d3edd62725c22e0c50b2d1912c2aeb472e (diff) | |
download | bcm5719-llvm-cebde8d74c7a4cff2ddf49b6637e6be2b9275c6f.tar.gz bcm5719-llvm-cebde8d74c7a4cff2ddf49b6637e6be2b9275c6f.zip |
Build the appropriate target machine for the input pointer size and endianness
llvm-svn: 5838
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/tools/lli/lli.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp index 73052c07090..6906465d710 100644 --- a/llvm/tools/lli/lli.cpp +++ b/llvm/tools/lli/lli.cpp @@ -75,10 +75,8 @@ int main(int argc, char** argv) { } #endif - // FIXME: This should look at the PointerSize and endianness of the bytecode - // file to determine the endianness and pointer size of target machine to use. - unsigned Config = TM::PtrSize64 | TM::BigEndian; - + unsigned Config = (M->isLittleEndian() ? TM::LittleEndian : TM::BigEndian) | + (M->has32BitPointers() ? TM::PtrSize32 : TM::PtrSize64); ExecutionEngine *EE = 0; // If there is nothing that is forcing us to use the interpreter, make a JIT. |