Stub types and constants blocks

This commit is contained in:
baldurk
2020-06-01 14:24:53 +01:00
parent 99aa195e40
commit 0c54db28aa
@@ -639,7 +639,7 @@ Program::Program(const byte *bytes, size_t length)
}
else
{
RDCWARN("Unknown record ID %u encountered at module scope", rootchild.id);
RDCERR("Unknown record ID %u encountered at module scope", rootchild.id);
}
}
else if(rootchild.IsBlock())
@@ -729,6 +729,12 @@ Program::Program(const byte *bytes, size_t length)
else if(IS_KNOWN(rootchild.id, KnownBlocks::FUNCTION_BLOCK))
{
}
else if(IS_KNOWN(rootchild.id, KnownBlocks::TYPE_BLOCK))
{
}
else if(IS_KNOWN(rootchild.id, KnownBlocks::CONSTANTS_BLOCK))
{
}
else if(IS_KNOWN(rootchild.id, KnownBlocks::VALUE_SYMTAB_BLOCK))
{
for(const LLVMBC::BlockOrRecord &symtab : rootchild.children)
@@ -933,7 +939,7 @@ Program::Program(const byte *bytes, size_t length)
}
else
{
RDCWARN("Unknown block ID %u encountered at module scope", rootchild.id);
RDCERR("Unknown block ID %u encountered at module scope", rootchild.id);
}
}
}