[lld] r189778 - Do not add entry symbol to the dead strip list. Partially revert r189776.
Rui Ueyama
ruiu at google.com
Mon Sep 2 20:34:33 PDT 2013
Author: ruiu
Date: Mon Sep 2 22:34:33 2013
New Revision: 189778
URL: http://llvm.org/viewvc/llvm-project?rev=189778&view=rev
Log:
Do not add entry symbol to the dead strip list. Partially revert r189776.
Modified:
lld/trunk/include/lld/Core/LinkingContext.h
Modified: lld/trunk/include/lld/Core/LinkingContext.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/LinkingContext.h?rev=189778&r1=189777&r2=189778&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/LinkingContext.h (original)
+++ lld/trunk/include/lld/Core/LinkingContext.h Mon Sep 2 22:34:33 2013
@@ -185,8 +185,6 @@ public:
// the symbol if your platform supports dead-stripping, so that the symbol
// will not be removed from the output.
void setEntrySymbolName(StringRef name) {
- // Entry function have to be resolved as an undefined symbol.
- addInitialUndefinedSymbol(name);
_entrySymbolName = name;
}
More information about the llvm-commits
mailing list