c++ - how to deal with changes in LLVM metadata.h -


in llvm version 3.6 have changed metadata class lot , have split metadata value. previous code based on 3.5 version doesn't work anymore. having difficulties upgrading code. can help.

e.g. : previous code :

mdnode *record; value *undval = record->getoperand(1); type *type_hint = undval->gettype(); 

does know how upgrade code make 3.6 compatible ?

i tried :

mdnode *record; const mdoperand &undval = record->getoperand(1); type *type_hint = undval->gettype(); 

but doesn't work. results in compile errors saying

'gettype' : not member of 'llvm::metadata'

any appreciated.

have tried dyn_cast<>, this:

value* undval = dyn_cast<value>(record->getoperand(1)); type* type_hint; if(undval) type_hint = undval->hettype(); 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -