Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/AsmParser/LLParser.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 4,990 Lines • ▼ Show 20 Lines | |||||
#undef VISIT_MD_FIELDS | #undef VISIT_MD_FIELDS | ||||
std::optional<DIFile::ChecksumInfo<MDString *>> OptChecksum; | std::optional<DIFile::ChecksumInfo<MDString *>> OptChecksum; | ||||
if (checksumkind.Seen && checksum.Seen) | if (checksumkind.Seen && checksum.Seen) | ||||
OptChecksum.emplace(checksumkind.Val, checksum.Val); | OptChecksum.emplace(checksumkind.Val, checksum.Val); | ||||
else if (checksumkind.Seen || checksum.Seen) | else if (checksumkind.Seen || checksum.Seen) | ||||
return Lex.Error("'checksumkind' and 'checksum' must be provided together"); | return Lex.Error("'checksumkind' and 'checksum' must be provided together"); | ||||
std::optional<MDString *> OptSource; | MDString *Source = nullptr; | ||||
if (source.Seen) | if (source.Seen) | ||||
OptSource = source.Val; | Source = source.Val; | ||||
Result = GET_OR_DISTINCT(DIFile, (Context, filename.Val, directory.Val, | Result = GET_OR_DISTINCT( | ||||
OptChecksum, OptSource)); | DIFile, (Context, filename.Val, directory.Val, OptChecksum, Source)); | ||||
return false; | return false; | ||||
} | } | ||||
/// parseDICompileUnit: | /// parseDICompileUnit: | ||||
/// ::= !DICompileUnit(language: DW_LANG_C99, file: !0, producer: "clang", | /// ::= !DICompileUnit(language: DW_LANG_C99, file: !0, producer: "clang", | ||||
/// isOptimized: true, flags: "-O2", runtimeVersion: 1, | /// isOptimized: true, flags: "-O2", runtimeVersion: 1, | ||||
/// splitDebugFilename: "abc.debug", | /// splitDebugFilename: "abc.debug", | ||||
/// emissionKind: FullDebug, enums: !1, retainedTypes: !2, | /// emissionKind: FullDebug, enums: !1, retainedTypes: !2, | ||||
▲ Show 20 Lines • Show All 4,902 Lines • Show Last 20 Lines |