aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Instruction.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-13 07:54:42 +0000
committerChris Lattner <sabre@nondot.org>2007-02-13 07:54:42 +0000
commitf00042a9990d90885a8f236ed0f6bf07902d1374 (patch)
tree858cab704fd07ea16e1d808e49d61c180c031c31 /include/llvm/Instruction.h
parentec79b3da13ae9ba09f52e177bd71fcc5669d61a5 (diff)
downloadexternal_llvm-f00042a9990d90885a8f236ed0f6bf07902d1374.zip
external_llvm-f00042a9990d90885a8f236ed0f6bf07902d1374.tar.gz
external_llvm-f00042a9990d90885a8f236ed0f6bf07902d1374.tar.bz2
Switch UnaryOperators to default to passing names up by const char* when possible.
This speeds up bcreading by 1.5%. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34233 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instruction.h')
-rw-r--r--include/llvm/Instruction.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h
index 15c5919..7f7bcc8 100644
--- a/include/llvm/Instruction.h
+++ b/include/llvm/Instruction.h
@@ -41,10 +41,13 @@ 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);
+ const std::string &Name, 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);
public:
// Out of line virtual method, so the vtable, etc has a home.
~Instruction();