Inserting metadata into IR


What is a right way to insert MDString into every Instruction which represents calling of operator new? I need insert a name of class (mangled).

Yours sincerely,
Kadysev Mikhail

Modify EmitCXXNewExpr in CGExprCXX.cpp. There's a call to EmitCall at line 1185; the result should always be a call or invoke instruction that you can throw whatever metadata on that you like.