[lld] r316811 - Inline trivial symbol constructors.

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 31 07:03:43 PDT 2017


Rui Ueyama <ruiu at google.com> writes:

> They are now written in class declarations, so they are inlined, no?

At least from "inlined" I understand going from


int f() { return 42; }
int g() { return f(); }

to

int f() { return 42; }
int g() { return 42; }

what you did was

inilne int f() { return 42; }
int g() { return f(); }

which I would says is not inlining f, is making f an inline function.

Cheers,
Rafael


More information about the llvm-commits mailing list