abstract out buffer type a bit better

llvm-svn: 43883
This commit is contained in:
Chris Lattner 2007-11-08 05:42:25 +00:00
parent dc0cfc9fe3
commit 7a7da75916
1 changed files with 3 additions and 2 deletions

View File

@ -55,11 +55,12 @@ class RewriteBuffer {
/// Buffer - This is the actual buffer itself. Note that using a vector or
/// string is a horribly inefficient way to do this, we should use a rope
/// instead.
std::vector<char> Buffer;
typedef std::vector<char> BufferTy;
BufferTy Buffer;
public:
typedef std::vector<char>::const_iterator iterator;
typedef BufferTy::const_iterator iterator;
iterator begin() const { return Buffer.begin(); }
iterator end() const { return Buffer.end(); }