diff options
| author | 2016-03-11 14:35:33 +0000 | |
|---|---|---|
| committer | 2016-03-11 14:35:33 +0000 | |
| commit | 60e10c8564f47de0b7f29b26d040c591d5a396b5 (patch) | |
| tree | 49809c99b991eece44dad9ca26c89bdcf0f9d911 | |
| parent | 8583b44f8b5788b57be4d4738072dc6a99c49823 (diff) | |
| parent | 8862fac4a0b97d827d2808146d2d79b8d799b998 (diff) | |
Merge "Revert "Allow duplicated methods in different DWARF line tables.""
| -rw-r--r-- | compiler/debug/elf_debug_line_writer.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/debug/elf_debug_line_writer.h b/compiler/debug/elf_debug_line_writer.h index f462c32e9a..ed26d96603 100644 --- a/compiler/debug/elf_debug_line_writer.h +++ b/compiler/debug/elf_debug_line_writer.h @@ -18,7 +18,6 @@ #define ART_COMPILER_DEBUG_ELF_DEBUG_LINE_WRITER_H_ #include <vector> -#include <unordered_set> #include "compiled_method.h" #include "debug/dwarf/debug_line_opcode_writer.h" @@ -82,14 +81,11 @@ class ElfDebugLineWriter { case kX86_64: break; } - std::unordered_set<uint64_t> seen_addresses(compilation_unit.methods.size()); dwarf::DebugLineOpCodeWriter<> opcodes(is64bit, code_factor_bits_); for (const MethodDebugInfo* mi : compilation_unit.methods) { // Ignore function if we have already generated line table for the same address. // It would confuse the debugger and the DWARF specification forbids it. - // We allow the line table for method to be replicated in different compilation unit. - // This ensures that each compilation unit contains line table for all its methods. - if (!seen_addresses.insert(mi->low_pc).second) { + if (mi->deduped) { continue; } |