diff options
author | Chris Lattner <sabre@nondot.org> | 2001-07-07 19:24:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-07-07 19:24:15 +0000 |
commit | a41f50dea8573e4a610b5aa5e45b5c368559b084 (patch) | |
tree | 4e4bc17fa7fffd16e0f99e9229015ca6654ef802 /lib/AsmParser | |
parent | 30f24a402c27919e4809f6a54ec4046a921a889f (diff) | |
download | llvm-a41f50dea8573e4a610b5aa5e45b5c368559b084.tar.gz llvm-a41f50dea8573e4a610b5aa5e45b5c368559b084.tar.bz2 llvm-a41f50dea8573e4a610b5aa5e45b5c368559b084.tar.xz |
Broad superficial changes:
* Renamed getOpcode to getOpcodeName
* Changed getOpcodeName to return a const char * instead of string
* Added a getOpcode method to replace getInstType
* Changed code to use getOpcode instead of getInstType
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser')
-rw-r--r-- | lib/AsmParser/ParserInternals.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/ParserInternals.h b/lib/AsmParser/ParserInternals.h index 3aa0e7c144..bd26fdbaaf 100644 --- a/lib/AsmParser/ParserInternals.h +++ b/lib/AsmParser/ParserInternals.h @@ -118,7 +118,7 @@ struct InstPlaceHolderHelper : public Instruction { InstPlaceHolderHelper(const Type *Ty) : Instruction(Ty, UserOp1, "") {} virtual Instruction *clone() const { abort(); } - virtual string getOpcode() const { return "placeholder"; } + virtual const char *getOpcodeName() const { return "placeholder"; } }; struct BBPlaceHolderHelper : public BasicBlock { |