forked from OSchip/llvm-project
parent
36b376914d
commit
808df6725f
|
@ -738,17 +738,17 @@ void MCAssembler::writeSectionData(const MCSectionData *SD,
|
||||||
uint64_t MCAssembler::handleFixup(const MCAsmLayout &Layout,
|
uint64_t MCAssembler::handleFixup(const MCAsmLayout &Layout,
|
||||||
MCFragment &F,
|
MCFragment &F,
|
||||||
const MCFixup &Fixup) {
|
const MCFixup &Fixup) {
|
||||||
// Evaluate the fixup.
|
// Evaluate the fixup.
|
||||||
MCValue Target;
|
MCValue Target;
|
||||||
uint64_t FixedValue;
|
uint64_t FixedValue;
|
||||||
if (!evaluateFixup(Layout, Fixup, &F, Target, FixedValue)) {
|
if (!evaluateFixup(Layout, Fixup, &F, Target, FixedValue)) {
|
||||||
// The fixup was unresolved, we need a relocation. Inform the object
|
// The fixup was unresolved, we need a relocation. Inform the object
|
||||||
// writer of the relocation, and give it an opportunity to adjust the
|
// writer of the relocation, and give it an opportunity to adjust the
|
||||||
// fixup value if need be.
|
// fixup value if need be.
|
||||||
getWriter().RecordRelocation(*this, Layout, &F, Fixup, Target, FixedValue);
|
getWriter().RecordRelocation(*this, Layout, &F, Fixup, Target, FixedValue);
|
||||||
}
|
}
|
||||||
return FixedValue;
|
return FixedValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MCAssembler::Finish() {
|
void MCAssembler::Finish() {
|
||||||
DEBUG_WITH_TYPE("mc-dump", {
|
DEBUG_WITH_TYPE("mc-dump", {
|
||||||
|
|
Loading…
Reference in New Issue