[lld] r231616 - Remove unused function.

Rui Ueyama ruiu at google.com
Sun Mar 8 18:05:04 PDT 2015


Author: ruiu
Date: Sun Mar  8 20:05:04 2015
New Revision: 231616

URL: http://llvm.org/viewvc/llvm-project?rev=231616&view=rev
Log:
Remove unused function.

Modified:
    lld/trunk/include/lld/Core/Simple.h

Modified: lld/trunk/include/lld/Core/Simple.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/Simple.h?rev=231616&r1=231615&r2=231616&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/Simple.h (original)
+++ lld/trunk/include/lld/Core/Simple.h Sun Mar  8 20:05:04 2015
@@ -25,18 +25,6 @@
 
 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) {}





More information about the llvm-commits mailing list