summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAssembler.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-07-11 23:56:10 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-07-11 23:56:10 +0000
commitceecfe5be25dac3e74568dd9a9aa679448ebceef (patch)
tree093a1b3d9bd084a19f37a3f8a39b6df1fad393df /llvm/lib/MC/MCAssembler.cpp
parent992263c14e157b46c24c756555a6f86aad6265c5 (diff)
downloadbcm5719-llvm-ceecfe5be25dac3e74568dd9a9aa679448ebceef.tar.gz
bcm5719-llvm-ceecfe5be25dac3e74568dd9a9aa679448ebceef.zip
Simplify interface now that we don't need to pass IsPCRel. NFC.
llvm-svn: 307734
Diffstat (limited to 'llvm/lib/MC/MCAssembler.cpp')
-rw-r--r--llvm/lib/MC/MCAssembler.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp
index b2d20031f7a..eaf6f19326e 100644
--- a/llvm/lib/MC/MCAssembler.cpp
+++ b/llvm/lib/MC/MCAssembler.cpp
@@ -653,15 +653,12 @@ MCAssembler::handleFixup(const MCAsmLayout &Layout, MCFragment &F,
// Evaluate the fixup.
MCValue Target;
uint64_t FixedValue;
- bool IsPCRel = Backend.getFixupKindInfo(Fixup.getKind()).Flags &
- MCFixupKindInfo::FKF_IsPCRel;
bool IsResolved = evaluateFixup(Layout, Fixup, &F, Target, FixedValue);
if (!IsResolved) {
// The fixup was unresolved, we need a relocation. Inform the object
// writer of the relocation, and give it an opportunity to adjust the
// fixup value if need be.
- getWriter().recordRelocation(*this, Layout, &F, Fixup, Target, IsPCRel,
- FixedValue);
+ getWriter().recordRelocation(*this, Layout, &F, Fixup, Target, FixedValue);
}
return std::make_tuple(Target, FixedValue, IsResolved);
}
OpenPOWER on IntegriCloud