[lld] r234415 - Remove unused typedefs.
Rui Ueyama
ruiu at google.com
Wed Apr 8 09:59:03 PDT 2015
Author: ruiu
Date: Wed Apr 8 11:59:03 2015
New Revision: 234415
URL: http://llvm.org/viewvc/llvm-project?rev=234415&view=rev
Log:
Remove unused typedefs.
Modified:
lld/trunk/include/lld/Core/File.h
lld/trunk/unittests/MachOTests/MachONormalizedFileToAtomsTests.cpp
Modified: lld/trunk/include/lld/Core/File.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/File.h?rev=234415&r1=234414&r2=234415&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/File.h (original)
+++ lld/trunk/include/lld/Core/File.h Wed Apr 8 11:59:03 2015
@@ -93,18 +93,6 @@ public:
return _allocator;
}
- /// \brief For use interating over DefinedAtoms in this File.
- typedef atom_iterator<DefinedAtom> defined_iterator;
-
- /// \brief For use interating over UndefinedAtoms in this File.
- typedef atom_iterator<UndefinedAtom> undefined_iterator;
-
- /// \brief For use interating over SharedLibraryAtoms in this File.
- typedef atom_iterator<SharedLibraryAtom> shared_library_iterator;
-
- /// \brief For use interating over AbsoluteAtoms in this File.
- typedef atom_iterator<AbsoluteAtom> absolute_iterator;
-
/// \brief Different object file readers may instantiate and manage atoms with
/// different data structures. This class is a collection abstraction.
/// Each concrete File instance must implement these atom_collection
Modified: lld/trunk/unittests/MachOTests/MachONormalizedFileToAtomsTests.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/unittests/MachOTests/MachONormalizedFileToAtomsTests.cpp?rev=234415&r1=234414&r2=234415&view=diff
==============================================================================
--- lld/trunk/unittests/MachOTests/MachONormalizedFileToAtomsTests.cpp (original)
+++ lld/trunk/unittests/MachOTests/MachONormalizedFileToAtomsTests.cpp Wed Apr 8 11:59:03 2015
@@ -66,7 +66,7 @@ TEST(ToAtomsTest, basic_obj_x86_64) {
EXPECT_FALSE(!atom_f);
const lld::File &file = **atom_f;
EXPECT_EQ(3U, file.defined().size());
- lld::File::defined_iterator it = file.defined().begin();
+ auto it = file.defined().begin();
const lld::DefinedAtom *atom1 = *it;
++it;
const lld::DefinedAtom *atom2 = *it;
More information about the llvm-commits
mailing list