summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/Reader.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-12 18:53:43 +0000
committerChris Lattner <sabre@nondot.org>2007-02-12 18:53:43 +0000
commit8d160d68b8fc40ed50c2e0f928c40f57ec886915 (patch)
treebc586072d32bf81b5d2abd1bde893614e81cc024 /llvm/lib/Bytecode/Reader/Reader.h
parent1a5de584dca538300a570502be6c15942cc7d3cd (diff)
downloadbcm5719-llvm-8d160d68b8fc40ed50c2e0f928c40f57ec886915.tar.gz
bcm5719-llvm-8d160d68b8fc40ed50c2e0f928c40f57ec886915.zip
avoid creating a temporary string when reading the symbol table for a
module. This speeds up the bcreader 11%. llvm-svn: 34198
Diffstat (limited to 'llvm/lib/Bytecode/Reader/Reader.h')
-rw-r--r--llvm/lib/Bytecode/Reader/Reader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.h b/llvm/lib/Bytecode/Reader/Reader.h
index 8acf6c042f8..ca966f1cc74 100644
--- a/llvm/lib/Bytecode/Reader/Reader.h
+++ b/llvm/lib/Bytecode/Reader/Reader.h
@@ -438,6 +438,7 @@ private:
/// @brief Read a string
inline std::string read_str();
+ inline void read_str(SmallVectorImpl<char> &StrData);
/// @brief Read a float value
inline void read_float(float& FloatVal);
OpenPOWER on IntegriCloud