16 lines
473 B
C++
16 lines
473 B
C++
|
/** This compile unit holds a few global variables controlling the code
|
||
|
* generator's settings. These variables are used program-wide.
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
namespace settings {
|
||
|
/// Controls how the eh_elf switches are generated
|
||
|
enum SwitchGenerationPolicy {
|
||
|
SGP_SwitchPerFunc, ///< One switch per function, plus a lookup function
|
||
|
SGP_GlobalSwitch ///< One big switch per ELF file
|
||
|
};
|
||
|
|
||
|
extern SwitchGenerationPolicy switch_generation_policy;
|
||
|
}
|