forked from OSchip/llvm-project
parent
d18a97cb7a
commit
2a08dca3f7
lld/include/lld/Core
|
@ -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) {}
|
||||
|
|
Loading…
Reference in New Issue