Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/Serialization/ASTWriter.cpp
Show First 20 Lines • Show All 1,836 Lines • ▼ Show 20 Lines | RecordData::value_type Record[] = { | ||||
INPUT_FILE, | INPUT_FILE, | ||||
InputFileOffsets.size(), | InputFileOffsets.size(), | ||||
(uint64_t)Entry.File->getSize(), | (uint64_t)Entry.File->getSize(), | ||||
(uint64_t)getTimestampForOutput(Entry.File), | (uint64_t)getTimestampForOutput(Entry.File), | ||||
Entry.BufferOverridden, | Entry.BufferOverridden, | ||||
Entry.IsTransient, | Entry.IsTransient, | ||||
Entry.IsTopLevelModuleMap}; | Entry.IsTopLevelModuleMap}; | ||||
// FIXME: The path should be taken from the FileEntryRef. | |||||
EmitRecordWithPath(IFAbbrevCode, Record, Entry.File->getName()); | EmitRecordWithPath(IFAbbrevCode, Record, Entry.File->getName()); | ||||
} | } | ||||
Stream.ExitBlock(); | Stream.ExitBlock(); | ||||
// Create input file offsets abbreviation. | // Create input file offsets abbreviation. | ||||
auto OffsetsAbbrev = std::make_shared<BitCodeAbbrev>(); | auto OffsetsAbbrev = std::make_shared<BitCodeAbbrev>(); | ||||
OffsetsAbbrev->Add(BitCodeAbbrevOp(INPUT_FILE_OFFSETS)); | OffsetsAbbrev->Add(BitCodeAbbrevOp(INPUT_FILE_OFFSETS)); | ||||
▲ Show 20 Lines • Show All 5,257 Lines • Show Last 20 Lines |