Lines Matching refs:NaClBitcodeHeaderField
45 static const NaClBitcodeHeaderField::FieldType ExpectedType[] = {
46 NaClBitcodeHeaderField::kUnknownType, // kInvalid
47 NaClBitcodeHeaderField::kUInt32Type, // kPNaClVersion
48 NaClBitcodeHeaderField::kFlagType // kAlignBitcodeRecords
53 const char *NaClBitcodeHeaderField::IDName(Tag ID) { in IDName()
57 const char *NaClBitcodeHeaderField::TypeName(FieldType FType) { in TypeName()
61 NaClBitcodeHeaderField::NaClBitcodeHeaderField() in NaClBitcodeHeaderField() function in NaClBitcodeHeaderField
64 NaClBitcodeHeaderField::NaClBitcodeHeaderField(Tag MyID) in NaClBitcodeHeaderField() function in NaClBitcodeHeaderField
69 NaClBitcodeHeaderField::NaClBitcodeHeaderField(Tag MyID, uint32_t MyValue) in NaClBitcodeHeaderField() function in NaClBitcodeHeaderField
78 uint32_t NaClBitcodeHeaderField::GetUInt32Value() const { in GetUInt32Value()
86 NaClBitcodeHeaderField::NaClBitcodeHeaderField(Tag MyID, size_t MyLen, in NaClBitcodeHeaderField() function in NaClBitcodeHeaderField
95 bool NaClBitcodeHeaderField::Write(uint8_t *Buf, size_t BufLen) const { in Write()
115 bool NaClBitcodeHeaderField::Read(const uint8_t *Buf, size_t BufLen) { in Read()
137 std::string NaClBitcodeHeaderField::Contents() const { in Contents()
169 for (std::vector<NaClBitcodeHeaderField *>::const_iterator in ~NaClBitcodeHeader()
209 NaClBitcodeHeaderField *Field = new NaClBitcodeHeaderField(); in ReadFields()
258 NaClBitcodeHeaderField *
259 NaClBitcodeHeader::GetTaggedField(NaClBitcodeHeaderField::Tag ID) const { in GetTaggedField()
260 for (std::vector<NaClBitcodeHeaderField *>::const_iterator in GetTaggedField()
271 NaClBitcodeHeaderField *NaClBitcodeHeader::GetField(size_t index) const { in GetField()
277 NaClBitcodeHeaderField *GetPNaClVersionPtr(NaClBitcodeHeader *Header) { in GetPNaClVersionPtr()
278 if (NaClBitcodeHeaderField *Version = in GetPNaClVersionPtr()
279 Header->GetTaggedField(NaClBitcodeHeaderField::kPNaClVersion)) { in GetPNaClVersionPtr()
280 if (Version->GetType() == NaClBitcodeHeaderField::kUInt32Type) { in GetPNaClVersionPtr()
293 SmallSet<unsigned, NaClBitcodeHeaderField::kTag_MAX> FieldIDs; in InstallFields()
301 auto ReportProblemWithContents = [&](NaClBitcodeHeaderField *Field, in InstallFields()
310 NaClBitcodeHeaderField *Field = GetField(i); in InstallFields()
317 NaClBitcodeHeaderField::FieldType ExpectedTy = ExpectedType[Field->GetID()]; in InstallFields()
320 UnsupportedMessage.append(NaClBitcodeHeaderField::TypeName(ExpectedTy)); in InstallFields()
324 if (Field->GetType() == NaClBitcodeHeaderField::kUnknownType) { in InstallFields()
332 case NaClBitcodeHeaderField::kInvalid: in InstallFields()
336 case NaClBitcodeHeaderField::kPNaClVersion: in InstallFields()
344 case NaClBitcodeHeaderField::kAlignBitcodeRecords: in InstallFields()