[lld] r231629 - [MachO] Use setter for globalsAreDeadStripRoots. NFC intended.
Davide Italiano
davide at freebsd.org
Sun Mar 8 23:05:42 PDT 2015
Author: davide
Date: Mon Mar 9 01:05:42 2015
New Revision: 231629
URL: http://llvm.org/viewvc/llvm-project?rev=231629&view=rev
Log:
[MachO] Use setter for globalsAreDeadStripRoots. NFC intended.
Modified:
lld/trunk/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
Modified: lld/trunk/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/MachOLinkingContext.cpp?rev=231629&r1=231628&r2=231629&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/MachOLinkingContext.cpp (original)
+++ lld/trunk/lib/ReaderWriter/MachO/MachOLinkingContext.cpp Mon Mar 9 01:05:42 2015
@@ -214,7 +214,7 @@ void MachOLinkingContext::configure(Head
}
break;
case llvm::MachO::MH_DYLIB:
- _globalsAreDeadStripRoots = true;
+ setGlobalsAreDeadStripRoots(true);
break;
case llvm::MachO::MH_BUNDLE:
break;
@@ -570,7 +570,7 @@ bool MachOLinkingContext::validateImpl(r
addDeadStripRoot(binderSymbolName());
// If using -exported_symbols_list, make all exported symbols live.
if (_exportMode == ExportMode::whiteList) {
- _globalsAreDeadStripRoots = false;
+ setGlobalsAreDeadStripRoots(false);
for (const auto &symbol : _exportedSymbols)
addDeadStripRoot(symbol.getKey());
}
More information about the llvm-commits
mailing list