aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Debug.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-04-08 23:02:11 +0000
committerRui Ueyama <ruiu@google.com>2015-04-08 23:02:11 +0000
commitb0db07bf9049bdc028fcdd306710b86100d68a5f (patch)
tree458e64e4d774ed54456f36ad70bae1cc4109b8b2 /llvm/lib/Support/Debug.cpp
parent7a2e5c260c89fe40f0d65e165a83d75a34bc587e (diff)
downloadllvm-b0db07bf9049bdc028fcdd306710b86100d68a5f.zip
llvm-b0db07bf9049bdc028fcdd306710b86100d68a5f.tar.gz
llvm-b0db07bf9049bdc028fcdd306710b86100d68a5f.tar.bz2
Separate atom_collection type into two different types. NFC.
atom_collection is basically a wrapper for std::vector. The class provides begin and end member functions, so that it "hides" the other member functions provided by std::vector. However, you can still directly access _atoms member since the member is not protected. We cannot simply make the member private because we need that member when we are constructing atom vectors. This patch splits atom_collection into two types: std::vector<Atom *> and AtomRange. When we are constructing atom vectors, we use the former class. We return instances of the latter class from File objects so that callers cannot add or remove atoms from the lists. std::vector<Atom *> is automatically converted to AtomRange. llvm-svn: 234450
Diffstat (limited to 'llvm/lib/Support/Debug.cpp')
0 files changed, 0 insertions, 0 deletions