dwarf-assembly/src/settings.hpp

19 lines
524 B
C++

/** This compile unit holds a few global variables controlling the code
* generator's settings. These variables are used program-wide.
*/
#pragma once
#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;
extern std::string pc_list;
}