[PATCH] D12426: Omitting debug info function entry for functions that has no code.
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 28 10:30:09 PDT 2015
> On Aug 28, 2015, at 10:26 AM, Jake VanAdrighem <jvanadrighem at gmail.com> wrote:
>
>
>
> On Fri, Aug 28, 2015 at 9:43 AM, Adrian Prantl via llvm-commits <llvm-commits at lists.llvm.org <mailto:llvm-commits at lists.llvm.org>> wrote:
> aprantl added a comment.
>
> I assume that a function without code will never get inlined, so this should not cause a problem with inlining.
> David, could this affect overload resolution if it is a C++ method that is being eliminated?
>
>
> I thought we did inline empty functions? I know that in analyzeCall we give the go ahead if the function is empty.
Yes, what I should have said is that no instruction (and thus no insn without a DebugLoc) from the inlined function will make it into the caller if the inlined function is empty.
-- adrian
>
>
> Repository:
> rL LLVM
>
> http://reviews.llvm.org/D12426 <https://urldefense.proofpoint.com/v2/url?u=http-3A__reviews.llvm.org_D12426&d=BQMFaQ&c=eEvniauFctOgLOKGJOplqw&r=cTx6f1tAfqPeajYunFWp7_8ot79RnHyNteqzig4fXmA&m=RALQ1lbSTJQTonC5PrWB7i06aNPRZShsFzrhuaEf6uI&s=tI-l0dE_8aTjuPkpmCYdAQB5WEW6dA-gcY7s_dPg_2E&e=>
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org <mailto:llvm-commits at lists.llvm.org>
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits <https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_llvm-2Dcommits&d=BQMFaQ&c=eEvniauFctOgLOKGJOplqw&r=cTx6f1tAfqPeajYunFWp7_8ot79RnHyNteqzig4fXmA&m=RALQ1lbSTJQTonC5PrWB7i06aNPRZShsFzrhuaEf6uI&s=plUUL48mbaDlt0y0IzmYE4KGn94oqRooYnSMhuT4qo0&e=>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150828/f49fbd65/attachment.html>
More information about the llvm-commits
mailing list