aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Instruction.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-24 00:55:48 +0000
committerChris Lattner <sabre@nondot.org>2007-02-24 00:55:48 +0000
commit910c80a07503591052a77cefb26cebea95a8d743 (patch)
tree628400c13ec7019ef7b54f9664bb122357e2aa18 /include/llvm/Instruction.h
parente36126e47467ff987660be581a90ac3b02a3500c (diff)
downloadexternal_llvm-910c80a07503591052a77cefb26cebea95a8d743.zip
external_llvm-910c80a07503591052a77cefb26cebea95a8d743.tar.gz
external_llvm-910c80a07503591052a77cefb26cebea95a8d743.tar.bz2
Refactor the setName stuff, moving it down the inheritance hierarchy, to
solve a crash in -instcombine -debug that was hit while investigating PR1217 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34544 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instruction.h')
-rw-r--r--include/llvm/Instruction.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h
index 239e878..bda59e9 100644
--- a/include/llvm/Instruction.h
+++ b/include/llvm/Instruction.h
@@ -41,13 +41,9 @@ class Instruction : public User {
void setParent(BasicBlock *P);
protected:
Instruction(const Type *Ty, unsigned iType, Use *Ops, unsigned NumOps,
- const std::string &Name, Instruction *InsertBefore = 0);
+ Instruction *InsertBefore = 0);
Instruction(const Type *Ty, unsigned iType, Use *Ops, unsigned NumOps,
- const std::string &Name, BasicBlock *InsertAtEnd);
- Instruction(const Type *Ty, unsigned iType, Use *Ops, unsigned NumOps,
- const char *Name = 0, Instruction *InsertBefore = 0);
- Instruction(const Type *Ty, unsigned iType, Use *Ops, unsigned NumOps,
- const char *Name, BasicBlock *InsertAtEnd);
+ BasicBlock *InsertAtEnd);
public:
// Out of line virtual method, so the vtable, etc has a home.
~Instruction();