This patch checks __llvm_profile_ir_level and sets the right version in the generated profiles.
This is related to http://reviews.llvm.org/D15540.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/profile/InstrProfiling.c | ||
---|---|---|
22 | use macro LLVM_ATTRIBUTE_WEAK |
lib/profile/InstrProfiling.c | ||
---|---|---|
22 | Macro LLVM_ATTRIBUTE_WEAK is defined in llvm/Support/Compiler.h. It seems to me we should include that header here (also that is a c++ header). |
Comment Actions
Please rebase your patch. The portability macro to be used is
COMPILER_RT_WEAK.
David
Comment Actions
We now generate the profile version directly from the PGO instrumentation (based on Justin's suggestion).
This change is now obsolete.
use macro LLVM_ATTRIBUTE_WEAK