aboutsummaryrefslogtreecommitdiff
path: root/gold/output.h
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <respindola@mozilla.com>2009-12-03 04:26:01 +0000
committerRafael Ávila de Espíndola <respindola@mozilla.com>2009-12-03 04:26:01 +0000
commit3aec4f9c2fe16765755d252ffe05aff9eb10bf8b (patch)
tree44f5c2a51c18aec14d7521a3de1912ee67734d8a /gold/output.h
parent55da44bd78324051f2828065c54ecfe60002ba1f (diff)
downloadgdb-3aec4f9c2fe16765755d252ffe05aff9eb10bf8b.zip
gdb-3aec4f9c2fe16765755d252ffe05aff9eb10bf8b.tar.gz
gdb-3aec4f9c2fe16765755d252ffe05aff9eb10bf8b.tar.bz2
2009-12-02 Rafael Avila de Espindola <espindola@google.com>
* incremental.cc (make_sized_incremental_binary): Set the target. Error if it is incompatible. * output.h (Output_file): Add filename method.
Diffstat (limited to 'gold/output.h')
-rw-r--r--gold/output.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/output.h b/gold/output.h
index 7e1c73b..6631aa1 100644
--- a/gold/output.h
+++ b/gold/output.h
@@ -3653,6 +3653,11 @@ class Output_file
filesize()
{ return this->file_size_; }
+ // Return the name of this file.
+ const char*
+ filename()
+ { return this->name_; }
+
// We currently always use mmap which makes the view handling quite
// simple. In the future we may support other approaches.