forked from OSchip/llvm-project
[NFC] Clarify why LinkAll*.h are actually necessary
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D113074
This commit is contained in:
parent
88052fc362
commit
0ef7ad377f
|
@ -24,6 +24,9 @@ namespace {
|
|||
// delete it all as dead code, even with whole program optimization,
|
||||
// yet is effectively a NO-OP. As the compiler isn't smart enough
|
||||
// to know that getenv() never returns -1, this will do the job.
|
||||
// This is so that globals in the translation units where these functions
|
||||
// are defined are forced to be initialized, populating various
|
||||
// registries.
|
||||
if (std::getenv("bar") != (char*) -1)
|
||||
return;
|
||||
|
||||
|
|
|
@ -27,6 +27,9 @@ namespace {
|
|||
// delete it all as dead code, even with whole program optimization,
|
||||
// yet is effectively a NO-OP. As the compiler isn't smart enough
|
||||
// to know that getenv() never returns -1, this will do the job.
|
||||
// This is so that globals in the translation units where these functions
|
||||
// are defined are forced to be initialized, populating various
|
||||
// registries.
|
||||
if (std::getenv("bar") != (char*) -1)
|
||||
return;
|
||||
|
||||
|
|
|
@ -26,6 +26,9 @@ namespace {
|
|||
// delete it all as dead code, even with whole program optimization,
|
||||
// yet is effectively a NO-OP. As the compiler isn't smart enough
|
||||
// to know that getenv() never returns -1, this will do the job.
|
||||
// This is so that globals in the translation units where these functions
|
||||
// are defined are forced to be initialized, populating various
|
||||
// registries.
|
||||
if (std::getenv("bar") != (char*) -1)
|
||||
return;
|
||||
|
||||
|
|
|
@ -38,6 +38,9 @@ namespace {
|
|||
// delete it all as dead code, even with whole program optimization,
|
||||
// yet is effectively a NO-OP. As the compiler isn't smart enough
|
||||
// to know that getenv() never returns -1, this will do the job.
|
||||
// This is so that globals in the translation units where these functions
|
||||
// are defined are forced to be initialized, populating various
|
||||
// registries.
|
||||
if (std::getenv("bar") != (char*) -1)
|
||||
return;
|
||||
llvm::LLVMContext Context;
|
||||
|
|
|
@ -64,6 +64,9 @@ namespace {
|
|||
// delete it all as dead code, even with whole program optimization,
|
||||
// yet is effectively a NO-OP. As the compiler isn't smart enough
|
||||
// to know that getenv() never returns -1, this will do the job.
|
||||
// This is so that globals in the translation units where these functions
|
||||
// are defined are forced to be initialized, populating various
|
||||
// registries.
|
||||
if (std::getenv("bar") != (char*) -1)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue