diff options
Diffstat (limited to 'compiler/compiler_backend.h')
-rw-r--r-- | compiler/compiler_backend.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/compiler/compiler_backend.h b/compiler/compiler_backend.h index 51fb29afd2..b473806bba 100644 --- a/compiler/compiler_backend.h +++ b/compiler/compiler_backend.h @@ -93,6 +93,19 @@ class CompilerBackend { virtual ~CompilerBackend() {} + /* + * @brief Generate and return Dwarf CFI initialization, if supported by the + * backend. + * @param driver CompilerDriver for this compile. + * @returns nullptr if not supported by backend or a vector of bytes for CFI DWARF + * information. + * @note This is used for backtrace information in generated code. + */ + virtual std::vector<uint8_t>* GetCallFrameInformationInitialization(const CompilerDriver& driver) + const { + return nullptr; + } + private: const uint64_t maximum_compilation_time_before_warning_; |