diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-03 05:45:44 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-03 05:45:44 +0000 |
commit | 812724efa432b5d0bc39e385e7f3c5460d88307f (patch) | |
tree | d5a01c45946aafde8282bc362b760ad428299cf7 /llvm/lib/AsmParser/ParserInternals.h | |
parent | 6ad23bdf9db304bf975c2897bd1696c703c6668b (diff) | |
download | bcm5719-llvm-812724efa432b5d0bc39e385e7f3c5460d88307f.tar.gz bcm5719-llvm-812724efa432b5d0bc39e385e7f3c5460d88307f.zip |
Remove backwards compatibility goop. Now implemented in llvm-upgrade.
llvm-svn: 32144
Diffstat (limited to 'llvm/lib/AsmParser/ParserInternals.h')
-rw-r--r-- | llvm/lib/AsmParser/ParserInternals.h | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/llvm/lib/AsmParser/ParserInternals.h b/llvm/lib/AsmParser/ParserInternals.h index 604057c9ba0..79e367fe1fe 100644 --- a/llvm/lib/AsmParser/ParserInternals.h +++ b/llvm/lib/AsmParser/ParserInternals.h @@ -201,56 +201,4 @@ struct ValID { } // End llvm namespace -// This structure is used to keep track of obsolete opcodes. The lexer will -// retain the ability to parse obsolete opcode mnemonics. In this case it will -// set "obsolete" to true and the opcode will be the replacement opcode. For -// example if "rem" is encountered then opcode will be set to "urem" and the -// "obsolete" flag will be true. If the opcode is not obsolete then "obsolete" -// will be false. -template <class Enum> -struct OpcodeInfo { - Enum opcode; - bool obsolete; -}; -typedef OpcodeInfo<llvm::Instruction::BinaryOps> BinaryOpInfo; -typedef OpcodeInfo<llvm::Instruction::TermOps> TermOpInfo; -typedef OpcodeInfo<llvm::Instruction::MemoryOps> MemOpInfo; -typedef OpcodeInfo<llvm::Instruction::CastOps> CastOpInfo; -typedef OpcodeInfo<llvm::Instruction::OtherOps> OtherOpInfo; - -/// This enumeration is used to indicate if a type is signed, signless or -/// unsigned. It is used for backwards compatibility with assembly code that -/// pre-dates the signless types conversion. -enum Signedness { - isSigned, - isUnsigned, - isSignless -}; - -/// This type is used to keep track of the signedness of the obsolete -/// integer types. Instead of creating an llvm::Type directly, the Lexer will -/// create instances of TypeInfo which retains the signedness indication so -/// it can be used by the parser for upgrade decisions. -/// For example if "uint" is encountered then the "first" field will be set -/// to "int32" and the "second" field will be set to "isUnsigned". If the -/// type is not obsolete then "second" will be set to "isSignless". -struct TypeInfo { - llvm::PATypeHolder* type; - Signedness signedness; -}; - -/// This type is used to keep track of the signedness of values. Instead -/// of creating llvm::Value directly, the parser will create ValueInfo which -/// associates a Value* with a Signedness indication. -struct ValueInfo { - llvm::Value* val; - Signedness signedness; -}; - -/// This type is used to keep track of the signedness of constants. -struct ConstInfo { - llvm::Constant *cnst; - Signedness signedness; -}; - #endif |