aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/User.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-12 05:18:08 +0000
committerChris Lattner <sabre@nondot.org>2007-02-12 05:18:08 +0000
commitdec628eead87b20773c98a00830580df211acc98 (patch)
treecb28286b21387a97519f3e30c757c4fa07b904c5 /include/llvm/User.h
parentfa48e9612e52adada82b3d74f9a8e2c35c960b36 (diff)
Switch ValueSymbolTable to use StringMap<Value*> instead of std::map<std::string, Value*>
as its main datastructure. There are many improvements yet to be made, but this speeds up opt --std-compile-opts on 447.dealII by 7.3%. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34193 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/User.h')
-rw-r--r--include/llvm/User.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/User.h b/include/llvm/User.h
index b0ecf75d86..1ea5e189ba 100644
--- a/include/llvm/User.h
+++ b/include/llvm/User.h
@@ -20,7 +20,6 @@
#define LLVM_USER_H
#include "llvm/Value.h"
-#include <vector>
namespace llvm {
@@ -39,9 +38,8 @@ protected:
unsigned NumOperands;
public:
- User(const Type *Ty, unsigned vty, Use *OpList, unsigned NumOps,
- const std::string &name = "")
- : Value(Ty, vty, name), OperandList(OpList), NumOperands(NumOps) {}
+ User(const Type *Ty, unsigned vty, Use *OpList, unsigned NumOps)
+ : Value(Ty, vty), OperandList(OpList), NumOperands(NumOps) {}
Value *getOperand(unsigned i) const {
assert(i < NumOperands && "getOperand() out of range!");