summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-17 20:08:20 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-17 20:08:20 +0000
commitdfe2d359c5e5517a7cbbe83009cc23518f4ff65a (patch)
tree094446c176d2255fb3c511ee31753d4ccb09d0db /llvm/lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp
parente8accef8660e5a5af47e612cccb74dbc95ca5bc7 (diff)
downloadbcm5719-llvm-dfe2d359c5e5517a7cbbe83009cc23518f4ff65a.tar.gz
bcm5719-llvm-dfe2d359c5e5517a7cbbe83009cc23518f4ff65a.zip
Move IsUsedInReloc from MCSymbolELF to MCSymbol.
There is a free bit is MCSymbol and MachO needs the same information. llvm-svn: 239933
Diffstat (limited to 'llvm/lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp')
-rw-r--r--llvm/lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp b/llvm/lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp
index 95acc07192d..9e801fc8f19 100644
--- a/llvm/lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp
+++ b/llvm/lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp
@@ -205,7 +205,7 @@ void X86MachObjectWriter::RecordX86_64Relocation(
if (Symbol->isTemporary() && Value) {
const MCSection &Sec = Symbol->getSection();
if (!Asm.getContext().getAsmInfo()->isSectionAtomizableBySymbols(Sec))
- Asm.addLocalUsedInReloc(*Symbol);
+ Symbol->setUsedInReloc();
}
RelSymbol = Asm.getAtom(*Symbol);
OpenPOWER on IntegriCloud