/* Payload maintainer may make decision which HOB is need or needn't Then add the check logic in the function. */
BOOLEAN IsHobNeed(EFI_PEI_HOB_POINTERS Hob)
/* Payload maintainer may make decision which HOB is need or needn't Then add the check logic in the function. */
BOOLEAN IsHobNeed(EFI_PEI_HOB_POINTERS Hob)
{
  if (Hob.Header->HobType == EFI_HOB_TYPE_HANDOFF) {
    return FALSE;
  }
  if (Hob.Header->HobType == EFI_HOB_TYPE_MEMORY_ALLOCATION) {
    if (CompareGuid (&Hob.MemoryAllocationModule->MemoryAllocationHeader.Name, &gEfiHobMemoryAllocModuleGuid)) {
      return FALSE;
    }
  }
  return TRUE;
}