Lines Matching refs:Header
47 /// HeaderMap::Create - This attempts to load the specified file as a header
52 // If the file is too small to be a header map, ignore it.
71 // We know the file is at least as big as the header, check it now.
72 const HMapHeader *Header = reinterpret_cast<const HMapHeader*>(FileStart);
76 if (Header->Magic == HMAP_HeaderMagicNumber &&
77 Header->Version == HMAP_HeaderVersion)
79 else if (Header->Magic == llvm::ByteSwap_32(HMAP_HeaderMagicNumber) &&
80 Header->Version == llvm::ByteSwap_16(HMAP_HeaderVersion))
83 return false; // Not a header map.
85 if (Header->Reserved != 0)
91 ? llvm::sys::getSwappedBytes(Header->NumBuckets)
92 : Header->NumBuckets;
118 /// getHeader - Return a reference to the file header, in unbyte-swapped form.
121 // We know the file is at least as big as the header. Return it.
125 /// getBucket - Return the specified hash table bucket from the header map,
176 llvm::dbgs() << "Header Map " << getFileName() << ":\n " << NumBuckets