summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/include/lld/Core/Simple.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/lld/include/lld/Core/Simple.h b/lld/include/lld/Core/Simple.h
index 119842ac151..e193f70218c 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) {}
OpenPOWER on IntegriCloud