diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-05-09 23:20:19 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-05-09 23:20:19 +0000 |
commit | dc8e6b59e783b5816ac7f995f9a36ad9c8d4ba87 (patch) | |
tree | 3b53cf5ca265e018e0ff3009911b94ba27c9205f /projects/Stacker/lib/compiler/StackerCompiler.h | |
parent | 9984fd0df9f4a07345c46ade9d8d7d5a4829a967 (diff) |
Changes to make the Stacker Stack use 64 bit values. This *should* get
around the problem with Stacker on Solaris because the Stack can handle
64-bit entries (pointer sized).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13441 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'projects/Stacker/lib/compiler/StackerCompiler.h')
-rw-r--r-- | projects/Stacker/lib/compiler/StackerCompiler.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/projects/Stacker/lib/compiler/StackerCompiler.h b/projects/Stacker/lib/compiler/StackerCompiler.h index c724c32d5d..8939ad0d15 100644 --- a/projects/Stacker/lib/compiler/StackerCompiler.h +++ b/projects/Stacker/lib/compiler/StackerCompiler.h @@ -140,7 +140,7 @@ class StackerCompiler /// @brief Handle the push of an integer onto the stack. /// @param value The integer value to be pushed. - BasicBlock* handle_integer( const int32_t value ); + BasicBlock* handle_integer( const int64_t value ); /// @brief Handle one of the reserved words (given as a token) BasicBlock* handle_word( int tkn ); @@ -169,7 +169,7 @@ class StackerCompiler /// @brief Generate code to push any value onto the stack. Instruction* push_value( BasicBlock* bb, Value* value ); /// @brief Generate code to push a constant integer onto the stack. - Instruction* push_integer( BasicBlock* bb, int32_t value ); + Instruction* push_integer( BasicBlock* bb, int64_t value ); /// @brief Generate code to pop an integer off the stack. Instruction* pop_integer( BasicBlock* bb ); /// @brief Generate code to push a string pointer onto the stack. @@ -211,9 +211,6 @@ class StackerCompiler ConstantInt* Three; ///< long constant 3 ConstantInt* Four; ///< long constant 4 ConstantInt* Five; ///< long constant 5 - ConstantInt* IZero; ///< int constant 0 - ConstantInt* IOne; ///< int constant 1 - ConstantInt* ITwo; ///< int constant 2 std::vector<Value*> no_arguments; ///< no arguments for Stacker bool echo; ///< Echo flag size_t stack_size; ///< Size of stack to gen. |