From 2a08dca3f719f207ead372bc0b635c757efd41c6 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Mon, 9 Mar 2015 01:05:04 +0000 Subject: [PATCH] Remove unused function. llvm-svn: 231616 --- lld/include/lld/Core/Simple.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lld/include/lld/Core/Simple.h b/lld/include/lld/Core/Simple.h index 119842a..e193f70 100644 --- a/lld/include/lld/Core/Simple.h +++ b/lld/include/lld/Core/Simple.h @@ -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) {} -- 2.7.4