[lld] r207154 - [PECOFF] Do not copy-construct ExportDesc.
Rui Ueyama
ruiu at google.com
Thu Apr 24 15:57:18 PDT 2014
Author: ruiu
Date: Thu Apr 24 17:57:17 2014
New Revision: 207154
URL: http://llvm.org/viewvc/llvm-project?rev=207154&view=rev
Log:
[PECOFF] Do not copy-construct ExportDesc.
Modified:
lld/trunk/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.h
Modified: lld/trunk/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.h?rev=207154&r1=207153&r2=207154&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.h (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.h Thu Apr 24 17:57:17 2014
@@ -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>(
More information about the llvm-commits
mailing list