aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-29 21:23:30 +0000
committerChris Lattner <sabre@nondot.org>2002-04-29 21:23:30 +0000
commitea1e8c70ebc6e7e5777e42aff112f7ca872295ce (patch)
tree1c4665299c3615f13dfa48fd204ee3f3e6aef3f1 /include/llvm
parent91b078dd541b683957a5e449d2c68284c86bbe46 (diff)
downloadexternal_llvm-ea1e8c70ebc6e7e5777e42aff112f7ca872295ce.zip
external_llvm-ea1e8c70ebc6e7e5777e42aff112f7ca872295ce.tar.gz
external_llvm-ea1e8c70ebc6e7e5777e42aff112f7ca872295ce.tar.bz2
Make the range insert operation return an iterator, even though the STL
range insert doesn't git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2413 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/ValueHolder.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/ValueHolder.h b/include/llvm/ValueHolder.h
index af08212..a69c7b6 100644
--- a/include/llvm/ValueHolder.h
+++ b/include/llvm/ValueHolder.h
@@ -118,14 +118,14 @@ public:
iterator insert(iterator Pos, ValueSubclass *Inst);
// ValueHolder::insert - This method inserts the specified _range_ of values
- // before the 'Pos' iterator. This currently only works for vector
- // iterators...
+ // before the 'Pos' iterator, returning a new iterator that points to the
+ // first item inserted. *This currently only works for vector iterators...*
//
// FIXME: This is not generic so that the code does not have to be around
// to be used... is this ok?
//
- void insert(iterator Pos, // Where to insert
- iterator First, iterator Last); // Vector to read insts from
+ iterator insert(iterator Pos, // Where to insert
+ iterator First, iterator Last); // Vector to read insts from
};
#endif