Displaying 1 result from an estimated 1 matches for "dum_type".
Did you mean:
dump_type
2017 Jun 09
2
Subclassing LLVM Type
...}
std::string getTypeIdentifierString() const
{
return this->typeIdentifier ;
}
};
============================================
Now ,
Type* ty = new DummyType() works.
However , I wish to use "dynamic_cast<>" at runtime but I'm unable to do so.
example - DummyType* dum_type = dynamic_cast<DummyType>(ty) ; // where ty is a Type*
I get the following error -
error: 'llvm::Type' is not polymorphic
Is there some way around this ( without suggesting a change to my entire AST ) ?
Any help will be appreciated.
Thanks,
Malhar
-------------- next part ----...