diff options
author | Chris Lattner <sabre@nondot.org> | 2001-12-13 00:39:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-12-13 00:39:33 +0000 |
commit | 9df24be93bffe8d07bcb14fa50393a46f56ab7c4 (patch) | |
tree | 713f2a76409d8bb05ac76be59a4f362a7b33e718 | |
parent | 682ea21397436e49eabbe13432e527869f07b0e0 (diff) |
Subclasses can change the opcode of an instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1440 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Instruction.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 78c8750090..a7407ab3c8 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -18,12 +18,12 @@ class MachineCodeForVMInstr; class Instruction : public User { BasicBlock *Parent; - unsigned iType; // InstructionType MachineCodeForVMInstr* machineInstrVec; friend class ValueHolder<Instruction,BasicBlock,Method>; inline void setParent(BasicBlock *P) { Parent = P; } - +protected: + unsigned iType; // InstructionType public: Instruction(const Type *Ty, unsigned iType, const string &Name = ""); virtual ~Instruction(); // Virtual dtor == good. |