[llvm] r306582 - Reuse existing variable. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 28 11:24:03 PDT 2017
Author: rafael
Date: Wed Jun 28 11:24:02 2017
New Revision: 306582
URL: http://llvm.org/viewvc/llvm-project?rev=306582&view=rev
Log:
Reuse existing variable. NFC.
Modified:
llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp
Modified: llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp?rev=306582&r1=306581&r2=306582&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCMachObjectWriter.cpp Wed Jun 28 11:24:02 2017
@@ -219,11 +219,11 @@ bool PPCMachObjectWriter::recordScattere
const MCSymbol *SB = &B->getSymbol();
if (!SB->getFragment())
- report_fatal_error("symbol '" + B->getSymbol().getName() +
+ report_fatal_error("symbol '" + SB->getName() +
"' can not be undefined in a subtraction expression");
// FIXME: is Type correct? see include/llvm/BinaryFormat/MachO.h
- Value2 = Writer->getSymbolAddress(B->getSymbol(), Layout);
+ Value2 = Writer->getSymbolAddress(*SB, Layout);
FixedValue -= Writer->getSectionAddress(SB->getFragment()->getParent());
}
// FIXME: does FixedValue get used??
More information about the llvm-commits
mailing list