Fix functions not being kept for debugger
At Onone, many types of functions (anything user written, compiler
generated setters and getters, etc), should be kept in the final
binary so they're accessible by the debugger.
rdar://126763340
(cherry picked from commit 529845056ba835dbcaed04fe0290a364e87e5e30)