Out << (unsigned char)(V >> 56);
}
-inline void Pad(llvm::raw_fd_ostream& Out, unsigned A) {
+inline void Pad(llvm::raw_ostream& Out, unsigned A) {
Offset off = (Offset) Out.tell();
uint32_t n = ((uintptr_t)(off+A-1) & ~(uintptr_t)(A-1)) - off;
for (; n ; --n)
insert(Buckets, NumBuckets, new (BA.Allocate<Item>()) Item(key, data));
}
- io::Offset Emit(llvm::raw_fd_ostream& out) {
+ io::Offset Emit(llvm::raw_ostream& out) {
using namespace clang::io;
// Emit the payload of the table.
if (!B.head) continue;
// Store the offset for the data of this bucket.
- // FIXME: need tell() to work on other raw ostreams
B.off = out.tell();
// Write out the number of items in the bucket.
return std::make_pair(n, sizeof(uint32_t));
}
- static void EmitKey(llvm::raw_fd_ostream& Out, PTHIdKey* key, unsigned n) {
+ static void EmitKey(llvm::raw_ostream& Out, PTHIdKey* key, unsigned n) {
// Record the location of the key data. This is used when generating
// the mapping from persistent IDs to strings.
key->FileOffset = Out.tell();