Home | History | Annotate | Download | only in Lex

Lines Matching refs:HeaderMap

1 //===--- HeaderMap.cpp - A file that acts like dir of symlinks ------------===//
10 // This file implements the HeaderMap interface.
14 #include "clang/Lex/HeaderMap.h"
75 /// HeaderMap::Create - This attempts to load the specified file as a header
76 /// map. If it doesn't look like a HeaderMap, it gives up and returns null.
77 /// If it looks like a HeaderMap but is obviously corrupted, it puts a reason
79 const HeaderMap *HeaderMap::Create(const FileEntry *FE, FileManager &FM) {
91 // Sniff it to see if it's a headermap by checking the magic number and
99 NeedsByteSwap = true; // Mixed endianness headermap.
106 return new HeaderMap(FileBuffer.take(), NeedsByteSwap);
109 HeaderMap::~HeaderMap() {
118 /// getFileName - Return the filename of the headermap.
119 const char *HeaderMap::getFileName() const {
123 unsigned HeaderMap::getEndianAdjustedWord(unsigned X) const {
130 const HMapHeader &HeaderMap::getHeader() const {
138 HMapBucket HeaderMap::getBucket(unsigned BucketNo) const {
162 const char *HeaderMap::getString(unsigned StrTabIdx) const {
180 /// dump - Print the contents of this headermap to stderr.
181 void HeaderMap::dump() const {
201 /// this HeaderMap. If so, open it and return its FileEntry.
202 const FileEntry *HeaderMap::LookupFile(
207 // If the number of buckets is not a power of two, the headermap is corrupt.