summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-05-16 01:14:19 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-05-16 01:14:19 +0000
commit6e23e5a680ad0675b75c0264e1804c58a93eb2dc (patch)
tree43e719914bf8944e15bc0d90332d50013ff5bcfc /llvm/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp
parentd2b8fc1f3a178541e8972b4ee4ff35d7137c1913 (diff)
downloadbcm5719-llvm-6e23e5a680ad0675b75c0264e1804c58a93eb2dc.tar.gz
bcm5719-llvm-6e23e5a680ad0675b75c0264e1804c58a93eb2dc.zip
MC: Use MCSymbol in RelAndSymbol, NFC
Switch from `MCSymbolData` to `MCSymbol`. llvm-svn: 237502
Diffstat (limited to 'llvm/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp
index 44e69b7565d..c1bb9abd33c 100644
--- a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp
+++ b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp
@@ -333,7 +333,7 @@ void PPCMachObjectWriter::RecordPPCRelocation(
unsigned Index = 0;
unsigned Type = RelocType;
- const MCSymbolData *RelSymbol = nullptr;
+ const MCSymbol *RelSymbol = nullptr;
if (Target.isAbsolute()) { // constant
// SymbolNum of 0 indicates the absolute section.
//
@@ -355,7 +355,7 @@ void PPCMachObjectWriter::RecordPPCRelocation(
// Check whether we need an external or internal relocation.
if (Writer->doesSymbolRequireExternRelocation(SD)) {
- RelSymbol = SD;
+ RelSymbol = &SD->getSymbol();
// For external relocations, make sure to offset the fixup value to
// compensate for the addend of the symbol address, if it was
// undefined. This occurs with weak definitions, for example.
OpenPOWER on IntegriCloud