aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/InstrTypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/InstrTypes.h')
-rw-r--r--include/llvm/InstrTypes.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/InstrTypes.h b/include/llvm/InstrTypes.h
index 086cc35..105775f 100644
--- a/include/llvm/InstrTypes.h
+++ b/include/llvm/InstrTypes.h
@@ -30,7 +30,7 @@ public:
// Terminators must implement the methods required by Instruction...
virtual Instruction *clone() const = 0;
- virtual string getOpcode() const = 0;
+ virtual const char *getOpcodeName() const = 0;
// Additionally, they must provide a method to get at the successors of this
// terminator instruction. If 'idx' is out of range, a null pointer shall be
@@ -64,10 +64,10 @@ public:
}
virtual Instruction *clone() const {
- return create(getInstType(), Operands[0]);
+ return create(getOpcode(), Operands[0]);
}
- virtual string getOpcode() const = 0;
+ virtual const char *getOpcodeName() const = 0;
};
@@ -96,10 +96,10 @@ public:
}
virtual Instruction *clone() const {
- return create(getInstType(), Operands[0], Operands[1]);
+ return create(getOpcode(), Operands[0], Operands[1]);
}
- virtual string getOpcode() const = 0;
+ virtual const char *getOpcodeName() const = 0;
};
#endif