diff options
Diffstat (limited to 'compiler/oat_writer.h')
-rw-r--r-- | compiler/oat_writer.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/compiler/oat_writer.h b/compiler/oat_writer.h index f12c84d233..3d4b48ae42 100644 --- a/compiler/oat_writer.h +++ b/compiler/oat_writer.h @@ -82,6 +82,19 @@ class OatWriter { ~OatWriter(); + struct DebugInfo { + DebugInfo(const std::string& method_name, uint32_t low_pc, uint32_t high_pc) + : method_name_(method_name), low_pc_(low_pc), high_pc_(high_pc) { + } + std::string method_name_; + uint32_t low_pc_; + uint32_t high_pc_; + }; + + const std::vector<DebugInfo>& GetCFIMethodInfo() const { + return method_info_; + } + private: size_t InitOatHeader(); size_t InitOatDexFiles(size_t offset); @@ -205,6 +218,8 @@ class OatWriter { DISALLOW_COPY_AND_ASSIGN(OatClass); }; + std::vector<DebugInfo> method_info_; + const CompilerDriver* const compiler_driver_; // note OatFile does not take ownership of the DexFiles |