aboutsummaryrefslogtreecommitdiff
path: root/gold/object.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-11-07 00:49:56 +0000
committerIan Lance Taylor <iant@google.com>2007-11-07 00:49:56 +0000
commite43872e995f19a24dfc933627009b5d3c55aab18 (patch)
treeabdfeb32414f47a9450bf4b8f717924d81389ecc /gold/object.cc
parenta7a81c1d9d5e6191ec7a2c3ce2ecc03e1264e4df (diff)
downloadgdb-e43872e995f19a24dfc933627009b5d3c55aab18.zip
gdb-e43872e995f19a24dfc933627009b5d3c55aab18.tar.gz
gdb-e43872e995f19a24dfc933627009b5d3c55aab18.tar.bz2
From Craig Silverstein: Templatize the Dwarf reader.
Diffstat (limited to 'gold/object.cc')
-rw-r--r--gold/object.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gold/object.cc b/gold/object.cc
index 8efd4ec..0b71be1 100644
--- a/gold/object.cc
+++ b/gold/object.cc
@@ -919,8 +919,9 @@ Relocate_info<size, big_endian>::location(size_t, off_t offset) const
shndx, &debuglines_size, false);
if (debuglines)
{
- Dwarf_line_info line_info(debuglines, debuglines_size);
- line_info.read_line_mappings<size, big_endian>();
+ Dwarf_line_info<size, big_endian> line_info(debuglines,
+ debuglines_size);
+ line_info.read_line_mappings();
file_and_lineno = line_info.addr2line(this->data_shndx, offset);
}
break;