dwarf-assembly/src/settings.hpp

22 lines
699 B
C++
Raw Permalink Normal View History

/** This compile unit holds a few global variables controlling the code
* generator's settings. These variables are used program-wide.
*/
#pragma once
2018-05-11 13:09:35 +02:00
#include <string>
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;
2018-05-11 13:09:35 +02:00
extern std::string pc_list;
extern bool enable_deref_arg;
extern bool keep_holes; /**< Keep holes between FDEs. Larger eh_elf files,
but more accurate unwinding. */
}