In LLVM 3.6, they significantly changed the metadata class, and they split the metadata from the value. therefore my previous code based on version 3.5 no longer works. I'm having difficulty updating the code. Can someone help.
e.g .: previous code:
MDNode *record;
Value *undVal = record->getOperand(1);
Type *type_hint = undVal->getType();
Does anyone know how to update this code to make it compatible with 3.6?
I tried this:
MDNode *record;
const MDOperand &undVal = record->getOperand(1);
Type *type_hint = undVal->getType();
But that will not work. Results compiling errors saying
'getType': not a member of 'llvm :: Metadata'
Any help is appreciated.
source
share