Go to the source code of this file.
|
| STATISTIC (NumFunctions, "Total number of functions") |
| STATISTIC (NumUnsafeStackFunctions, "Number of functions with unsafe stack") |
| STATISTIC (NumUnsafeStackRestorePointsFunctions, "Number of functions that use setjmp or exceptions") |
| STATISTIC (NumAllocas, "Total number of allocas") |
| STATISTIC (NumUnsafeStaticAllocas, "Number of unsafe static allocas") |
| STATISTIC (NumUnsafeDynamicAllocas, "Number of unsafe dynamic allocas") |
| STATISTIC (NumUnsafeByValArguments, "Number of unsafe byval arguments") |
| STATISTIC (NumUnsafeStackRestorePoints, "Number of setjmps and landingpads") |
| INITIALIZE_PASS_BEGIN (SafeStackLegacyPass, DEBUG_TYPE, "Safe Stack instrumentation pass", false, false) INITIALIZE_PASS_END(SafeStackLegacyPass |
◆ DEBUG_TYPE
#define DEBUG_TYPE "safe-stack" |
◆ INITIALIZE_PASS_BEGIN()
◆ STATISTIC() [1/8]
STATISTIC |
( |
NumAllocas | , |
|
|
"Total number of allocas" | ) |
◆ STATISTIC() [2/8]
STATISTIC |
( |
NumFunctions | , |
|
|
"Total number of functions" | ) |
◆ STATISTIC() [3/8]
STATISTIC |
( |
NumUnsafeByValArguments | , |
|
|
"Number of unsafe byval arguments" | ) |
◆ STATISTIC() [4/8]
STATISTIC |
( |
NumUnsafeDynamicAllocas | , |
|
|
"Number of unsafe dynamic allocas" | ) |
◆ STATISTIC() [5/8]
STATISTIC |
( |
NumUnsafeStackFunctions | , |
|
|
"Number of functions with unsafe stack" | ) |
◆ STATISTIC() [6/8]
STATISTIC |
( |
NumUnsafeStackRestorePoints | , |
|
|
"Number of setjmps and landingpads" | ) |
◆ STATISTIC() [7/8]
STATISTIC |
( |
NumUnsafeStackRestorePointsFunctions | , |
|
|
"Number of functions that use setjmp or exceptions" | ) |
◆ STATISTIC() [8/8]
STATISTIC |
( |
NumUnsafeStaticAllocas | , |
|
|
"Number of unsafe static allocas" | ) |
◆ ClColoring
cl::opt< bool > ClColoring("safe-stack-coloring", cl::desc("enable safe stack coloring"), cl::Hidden, cl::init(true)) |
( |
"safe-stack-coloring" | , |
|
|
cl::desc("enable safe stack coloring") | , |
|
|
cl::Hidden | , |
|
|
cl::init(true) | ) |
|
static |
◆ DEBUG_TYPE
◆ false
◆ pass
◆ SafeStackUsePointerAddress
cl::opt< bool > SafeStackUsePointerAddress("safestack-use-pointer-address", cl::init(false), cl::Hidden) |
( |
"safestack-use-pointer-address" | , |
|
|
cl::init(false) | , |
|
|
cl::Hidden | ) |
|
static |
Use __safestack_pointer_address even if the platform has a faster way of access safe stack pointer.