[PATCH] Don't instrument inline functions that are not externally visible

Gonzalo Brito Gadeschi g.brito at aia.rwth-aachen.de
Tue Nov 12 06:12:26 PST 2013


This is a patch from Matthew Iselin that was never applied. Original
thread:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20130311/075917.html

>From Matthew's patch: "Inline functions that are not externally visible
mustn't be instrumented. They create a named reference to the inlined
function, as the first parameter to __cyg_profile_* functions, which a
linker will never be able to resolve."

Bests,
Gonzalo

-- 
Dipl.-Ing. Gonzalo Brito Gadeschi
Institute of Aerodynamics and Chair of Fluid Mechanics
RWTH Aachen University
Wuellnerstraße 5a
D-52062 Aachen
Germany
Phone: ++49-(0)241-80-94821
Fax: ++49-(0)241-80-92257
E-mail:  g.brito at aia.rwth-aachen.de
Internet: www.aia.rwth-aachen.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131112/8b14eff9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inline.patch
Type: application/octet-stream
Size: 842 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131112/8b14eff9/attachment.obj>


More information about the cfe-commits mailing list