Remove unused function.
authorRui Ueyama <ruiu@google.com>
Mon, 9 Mar 2015 01:05:04 +0000 (01:05 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 9 Mar 2015 01:05:04 +0000 (01:05 +0000)
llvm-svn: 231616

lld/include/lld/Core/Simple.h

index 119842a..e193f70 100644 (file)
 
 namespace lld {
 
-// Copy all atoms from src to dst. Atom ownership is not transferred.
-inline void copyAtoms(MutableFile *dst, File *src) {
-  for (const DefinedAtom *atom : src->defined())
-    dst->addAtom(*atom);
-  for (const UndefinedAtom *atom : src->undefined())
-    dst->addAtom(*atom);
-  for (const SharedLibraryAtom *atom : src->sharedLibrary())
-    dst->addAtom(*atom);
-  for (const AbsoluteAtom *atom : src->absolute())
-    dst->addAtom(*atom);
-}
-
 class SimpleFile : public MutableFile {
 public:
   SimpleFile(StringRef path) : MutableFile(path) {}