diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-12-17 22:25:12 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-12-17 22:25:12 +0000 |
commit | 8f559ef8201df637706247d7e0394ade63f9a026 (patch) | |
tree | 85f0207dbac0a9431835cca4e0f8183c7a14dc9e /include | |
parent | 691de382952e803e9f914467052b66548fbb7d63 (diff) | |
download | external_llvm-8f559ef8201df637706247d7e0394ade63f9a026.zip external_llvm-8f559ef8201df637706247d7e0394ade63f9a026.tar.gz external_llvm-8f559ef8201df637706247d7e0394ade63f9a026.tar.bz2 |
Modified Deserializer::ReadCStr to allow C-strings to be read into a
std::vector<char> starting from any index in the vector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45129 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Bitcode/Deserialize.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Bitcode/Deserialize.h b/include/llvm/Bitcode/Deserialize.h index 430100e..dc1cdc0 100644 --- a/include/llvm/Bitcode/Deserialize.h +++ b/include/llvm/Bitcode/Deserialize.h @@ -156,7 +156,7 @@ public: } char* ReadCStr(char* cstr = NULL, unsigned MaxLen=0, bool isNullTerm=true); - void ReadCStr(std::vector<char>& buff, bool isNullTerm=false); + void ReadCStr(std::vector<char>& buff, bool isNullTerm=false, unsigned Idx=0); template <typename T> inline T* ReadOwnedPtr(bool AutoRegister = true) { |