aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-10-08 00:17:45 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-10-08 00:17:45 +0000
commit5861893c25ee9ee6bb2991057169c0cb1e1331e0 (patch)
tree978afd9065496808f5f9427c69393038b2f1fcad /include
parent051fee03127ed20a6bbe66389c47edcd969f4cc7 (diff)
downloadexternal_llvm-5861893c25ee9ee6bb2991057169c0cb1e1331e0.zip
external_llvm-5861893c25ee9ee6bb2991057169c0cb1e1331e0.tar.gz
external_llvm-5861893c25ee9ee6bb2991057169c0cb1e1331e0.tar.bz2
Object: constize Archive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141448 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Object/Archive.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Object/Archive.h b/include/llvm/Object/Archive.h
index c6b6ed0..4f08120 100644
--- a/include/llvm/Object/Archive.h
+++ b/include/llvm/Object/Archive.h
@@ -24,11 +24,11 @@ namespace object {
class Archive : public Binary {
public:
class Child {
- Archive *Parent;
+ const Archive *Parent;
StringRef Data;
public:
- Child(Archive *p, StringRef d) : Parent(p), Data(d) {}
+ Child(const Archive *p, StringRef d) : Parent(p), Data(d) {}
bool operator ==(const Child &other) const {
return (Parent == other.Parent) && (Data.begin() == other.Data.begin());
@@ -71,8 +71,8 @@ public:
Archive(MemoryBuffer *source, error_code &ec);
- child_iterator begin_children();
- child_iterator end_children();
+ child_iterator begin_children() const;
+ child_iterator end_children() const;
// Cast methods.
static inline bool classof(Archive const *v) { return true; }