From e786eaa3b03bc91fa9a3b28eeea2f9d0b61be7b4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 13 Feb 2007 07:28:20 +0000 Subject: Use a SmallVector to reduce heap traffic. This speeds up bcreader 10% llvm-svn: 34231 --- llvm/lib/Bytecode/Reader/Reader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Bytecode/Reader') diff --git a/llvm/lib/Bytecode/Reader/Reader.h b/llvm/lib/Bytecode/Reader/Reader.h index ca966f1cc74..a8e879c03c2 100644 --- a/llvm/lib/Bytecode/Reader/Reader.h +++ b/llvm/lib/Bytecode/Reader/Reader.h @@ -80,7 +80,7 @@ public: /// globals section. /// @brief A list of values as a User of those Values. class ValueList : public User { - std::vector Uses; + SmallVector Uses; public: ValueList() : User(Type::VoidTy, Value::ArgumentVal, 0, 0) {} -- cgit v1.2.3