mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
[PECOFF] Do not copy-construct ExportDesc.
llvm-svn: 207154
This commit is contained in:
@@ -42,7 +42,7 @@ public:
|
||||
addAtom(_imageBaseAtom);
|
||||
|
||||
// Create implciit symbols for exported symbols.
|
||||
for (const PECOFFLinkingContext::ExportDesc exp : ctx.getDllExports()) {
|
||||
for (const PECOFFLinkingContext::ExportDesc &exp : ctx.getDllExports()) {
|
||||
UndefinedAtom *target = new (_alloc) SimpleUndefinedAtom(*this, exp.name);
|
||||
COFFLinkerInternalAtom *imp = createImpPointerAtom(ctx, exp.name);
|
||||
imp->addReference(std::unique_ptr<COFFReference>(
|
||||
|
||||
Reference in New Issue
Block a user