yaxunl added a comment. Sorry my previous example may have caused some confusion. Previously I said I wanted to override function definitions. However the only reason we want to add this attribute is so that unused functions will be dropped by the linker. http://reviews.llvm.org/D18095