diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-03 05:47:10 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-03 05:47:10 +0000 |
commit | 3795ad164a26ec826f43dece346e25f551c7f095 (patch) | |
tree | 06cdb571f6042b3edce14d4a3581967edbe6d4e0 /lib/Bytecode/Reader/Reader.h | |
parent | a132e04b66dcdf291454a394336718f2091c5637 (diff) |
Remove backwards compatibility goop. This is now handled by llvm-upgrade.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32146 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/Reader.h')
-rw-r--r-- | lib/Bytecode/Reader/Reader.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/Bytecode/Reader/Reader.h b/lib/Bytecode/Reader/Reader.h index 3ede6eb034..1d2fe32af6 100644 --- a/lib/Bytecode/Reader/Reader.h +++ b/lib/Bytecode/Reader/Reader.h @@ -226,26 +226,6 @@ protected: Function* F ///< The function into which BBs will be inserted ); - /// Convert previous opcode values into the current value and/or construct - /// the instruction. This function handles all *abnormal* cases for - /// instruction generation based on obsolete opcode values. The normal cases - /// are handled by the ParseInstruction function. - Instruction *upgradeInstrOpcodes( - unsigned &opcode, ///< The old opcode, possibly updated by this function - std::vector<unsigned> &Oprnds, ///< The operands to the instruction - unsigned &iType, ///< The type code from the bytecode file - const Type *InstTy, ///< The type of the instruction - BasicBlock *BB ///< The basic block to insert into, if we need to - ); - - /// @brief Convert previous opcode values for ConstantExpr into the current - /// value. - Constant *upgradeCEOpcodes( - unsigned &Opcode, ///< Opcode read from bytecode - const std::vector<Constant*> &ArgVec, ///< Arguments of instruction - unsigned TypeID ///< TypeID of the instruction type - ); - /// @brief Parse a single instruction. void ParseInstruction( std::vector<unsigned>& Args, ///< The arguments to be filled in @@ -291,24 +271,6 @@ private: /// unsigned char RevisionNum; // The rev # itself - /// Flags to distinguish LLVM 1.0 & 1.1 bytecode formats (revision #0) - - // In version 6, the Div and Rem instructions were converted to be the - // signed instructions UDiv, SDiv, URem and SRem. This flag will be true if - // the Div and Rem instructions are signless (ver 5 and prior). - bool hasSignlessDivRem; - - // In version 7, the Shr, Cast and Setcc instructions changed to their - // signed counterparts. This flag will be true if these instructions are - // signless (version 6 and prior). - bool hasSignlessShrCastSetcc; - - /// In release 1.7 we changed intrinsic functions to not be overloaded. There - /// is no bytecode change for this, but to optimize the auto-upgrade of calls - /// to intrinsic functions, we save a mapping of old function definitions to - /// the new ones so call instructions can be upgraded efficiently. - std::map<Function*,Function*> upgradedFunctions; - /// CompactionTypes - If a compaction table is active in the current function, /// this is the mapping that it contains. We keep track of what resolved type /// it is as well as what global type entry it is. |