Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
Show First 20 Lines • Show All 1,802 Lines • ▼ Show 20 Lines | void ModuleBitcodeWriter::writeDIFile(const DIFile *N, | ||||
} else { | } else { | ||||
// Maintain backwards compatibility with the old internal representation of | // Maintain backwards compatibility with the old internal representation of | ||||
// CSK_None in ChecksumKind by writing nulls here when Checksum is None. | // CSK_None in ChecksumKind by writing nulls here when Checksum is None. | ||||
Record.push_back(0); | Record.push_back(0); | ||||
Record.push_back(VE.getMetadataOrNullID(nullptr)); | Record.push_back(VE.getMetadataOrNullID(nullptr)); | ||||
} | } | ||||
auto Source = N->getRawSource(); | auto Source = N->getRawSource(); | ||||
if (Source) | if (Source) | ||||
Record.push_back(VE.getMetadataOrNullID(*Source)); | Record.push_back(VE.getMetadataOrNullID(Source)); | ||||
Stream.EmitRecord(bitc::METADATA_FILE, Record, Abbrev); | Stream.EmitRecord(bitc::METADATA_FILE, Record, Abbrev); | ||||
Record.clear(); | Record.clear(); | ||||
} | } | ||||
void ModuleBitcodeWriter::writeDICompileUnit(const DICompileUnit *N, | void ModuleBitcodeWriter::writeDICompileUnit(const DICompileUnit *N, | ||||
SmallVectorImpl<uint64_t> &Record, | SmallVectorImpl<uint64_t> &Record, | ||||
unsigned Abbrev) { | unsigned Abbrev) { | ||||
▲ Show 20 Lines • Show All 3,406 Lines • Show Last 20 Lines |