[cfe-dev] Inserting metadata into IR
John McCall
rjmccall at apple.com
Thu Apr 12 15:05:19 PDT 2012
On Apr 12, 2012, at 2:48 PM, Михаил wrote:
> 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).
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.
John.
More information about the cfe-dev
mailing list