|
|
|
|
|
by kccqzy
404 days ago
|
|
Everywhere in this thread is debating whether LTO "completely" solves this or not, but why does this even need LTO in the first place? Dead code elimination across translation units in C++ is traditionally accomplished by something like -ffunction-sections, as well as judiciously moving function implementations to the header file (inline). |
|
[0] https://clang.llvm.org/docs/ClangCommandLineReference.html#c...