summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAssembler.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-06-30 22:47:27 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-06-30 22:47:27 +0000
commit76287ab3a09247bf68051845c33d0c629de3712d (patch)
tree1ee8333df2864913bb10ffb86f8e4619644c45b5 /llvm/lib/MC/MCAssembler.cpp
parent3cede51322c253199f0de5d0619d8b9e947ab90a (diff)
downloadbcm5719-llvm-76287ab3a09247bf68051845c33d0c629de3712d.tar.gz
bcm5719-llvm-76287ab3a09247bf68051845c33d0c629de3712d.zip
Rename and adjust processFixupValue.
It was not processing any value. All that it ever did was force relocations, so name it shouldForceRelocation. llvm-svn: 306906
Diffstat (limited to 'llvm/lib/MC/MCAssembler.cpp')
-rw-r--r--llvm/lib/MC/MCAssembler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp
index 92c5da0e9fe..0318d916aa4 100644
--- a/llvm/lib/MC/MCAssembler.cpp
+++ b/llvm/lib/MC/MCAssembler.cpp
@@ -261,9 +261,9 @@ bool MCAssembler::evaluateFixup(const MCAsmLayout &Layout,
Value -= Offset;
}
- // Let the backend adjust the fixup value if necessary, including whether
- // we need a relocation.
- Backend.processFixupValue(*this, Fixup, Target, IsResolved);
+ // Let the backend force a relocation if needed.
+ if (IsResolved && Backend.shouldForceRelocation(*this, Fixup, Target))
+ IsResolved = false;
return IsResolved;
}
OpenPOWER on IntegriCloud