21 return Name ==
"<unnamed-tag>" || Name ==
"__unnamed" ||
35 if (!ForwardRef && !Scoped && !IsAnon)
37 if (!ForwardRef && HasUniqueName && !IsAnon)
67 return TagRecordHash{std::move(Deserialized), ThisRecordHash, 0};
72 Scoped ? Deserialized.getUniqueName() : Deserialized.getName();
74 return TagRecordHash{std::move(Deserialized), FullHash, ThisRecordHash};
89 switch (Type.
kind()) {
93 return getTagRecordHashForUdt<ClassRecord>(Type);
95 return getTagRecordHashForUdt<UnionRecord>(Type);
97 return getTagRecordHashForUdt<EnumRecord>(Type);
99 assert(
false &&
"Type is not a tag record!");
101 return make_error<StringError>(
"Invalid record type",
106 switch (Rec.
kind()) {
110 return getHashForUdt<ClassRecord>(Rec);
112 return getHashForUdt<UnionRecord>(Rec);
114 return getHashForUdt<EnumRecord>(Rec);
116 case LF_UDT_SRC_LINE:
117 return getSourceLineHash<UdtSourceLineRecord>(Rec);
118 case LF_UDT_MOD_SRC_LINE:
119 return getSourceLineHash<UdtModSourceLineRecord>(Rec);
uint32_t hashBufferV8(ArrayRef< uint8_t > Data)
LLVM_NODISCARD bool endswith(StringRef Suffix) const
Check if this string ends with the given Suffix.
This class represents lattice values for constants.
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
void write32le(void *P, uint32_t V)
static bool isAnonymous(StringRef Name)
StringRef getName() const
static Expected< uint32_t > getSourceLineHash(const CVType &Rec)
Tagged union holding either a T or a Error.
Expected< TagRecordHash > hashTagRecord(const codeview::CVType &Type)
Given a CVType referring to a class, structure, union, or enum, compute the hash of its forward decl ...
ClassOptions getOptions() const
ArrayRef< uint8_t > data() const
Expected< uint32_t > hashTypeRecord(const llvm::codeview::CVType &Type)
uint32_t hashStringV1(StringRef Str)
The instances of the Type class are immutable: once they are created, they are never changed...
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
StringRef getUniqueName() const
static Error deserializeAs(CVType &CVT, T &Record)
static Expected< TagRecordHash > getTagRecordHashForUdt(const CVType &Rec)
static uint32_t getHashForUdt(const TagRecord &Rec, ArrayRef< uint8_t > FullRecord)
void update(ArrayRef< uint8_t > Data)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
StringRef - Represent a constant reference to a string, i.e.
std::error_code inconvertibleErrorCode()
The value returned by this function can be returned from convertToErrorCode for Error values where no...