PGO: Remove explicit static initialization

Press ? to show keyboard shortcuts.
Committed
dexonsmithMar 20 2014, 12:23 PM
Parents
rL204378: Typo.
Branches
Unknown
Tags
Unknown
Description

PGO: Remove explicit static initialization

Remove the remaining explicit static initialization from translation
units, at least on Darwin. Instead, create a use of __llvm_pgo_runtime,
which will pull in required code from compiler-rt.

After this commit (and its pair in compiler-rt), a user can define their
own __llvm_pgo_runtime to satisfy this undefined symbol and call the
functions in compiler-rt directly.

rdar://problem/15943240

rL204379

cfe/trunk/lib/CodeGen/CodeGenPGO.cpp

Loading...

cfe/trunk/lib/Driver/ToolChains.cpp

Loading...

Add Comment