HomePhabricator

Set IgnoreLLVMUsed to false in CallGraph::addToCallGraph()

Authored by rampitec on Apr 5 2021, 1:01 PM.

Description

Set IgnoreLLVMUsed to false in CallGraph::addToCallGraph()

clang++ uses llvm.compiler.used in certain cases to preserve
symbol which is fully inlined. D96087 has resulted in undefined
symbols in such cases. Set it to false by default to preserve
old behavior but keep the option for specific uses where we
want to ignore these (e.g. to detect a potential indirect call
to a function).

Differential Revision: https://reviews.llvm.org/D99897

Details

Committed
rampitecThu, Apr 8, 11:14 AM
Differential Revision
D99897: Set IgnoreLLVMUsed to false in CallGraph::addToCallGraph()
Parents
rGc2e76a9a6dcc: [lld-macho][nfc] Use varargs form of hasArg()
Branches
Unknown
Tags
Unknown