summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/WinCOFFObjectWriter.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2015-01-06 00:54:32 +0000
committerLang Hames <lhames@gmail.com>2015-01-06 00:54:32 +0000
commit04b37c4043bf90e9986e08f23214d6080bee603e (patch)
tree10b0b0b81d885fef0e6ea6afbc2b39f97a67fd67 /llvm/lib/MC/WinCOFFObjectWriter.cpp
parente78889c66969e9af8d66459a55bdce41051603a8 (diff)
downloadbcm5719-llvm-04b37c4043bf90e9986e08f23214d6080bee603e.tar.gz
bcm5719-llvm-04b37c4043bf90e9986e08f23214d6080bee603e.zip
Revert r225048: It broke ObjC on AArch64.
I've filed http://llvm.org/PR22100 to track this issue. llvm-svn: 225228
Diffstat (limited to 'llvm/lib/MC/WinCOFFObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/WinCOFFObjectWriter.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/llvm/lib/MC/WinCOFFObjectWriter.cpp b/llvm/lib/MC/WinCOFFObjectWriter.cpp
index 2cb247a7a90..2180b42bcb5 100644
--- a/llvm/lib/MC/WinCOFFObjectWriter.cpp
+++ b/llvm/lib/MC/WinCOFFObjectWriter.cpp
@@ -175,7 +175,7 @@ public:
const MCFragment &FB, bool InSet,
bool IsPCRel) const override;
- void RecordRelocation(MCAssembler &Asm, const MCAsmLayout &Layout,
+ void RecordRelocation(const MCAssembler &Asm, const MCAsmLayout &Layout,
const MCFragment *Fragment, const MCFixup &Fixup,
MCValue Target, bool &IsPCRel,
uint64_t &FixedValue) override;
@@ -661,9 +661,13 @@ bool WinCOFFObjectWriter::IsSymbolRefDifferenceFullyResolvedImpl(
InSet, IsPCRel);
}
-void WinCOFFObjectWriter::RecordRelocation(
- MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment,
- const MCFixup &Fixup, MCValue Target, bool &IsPCRel, uint64_t &FixedValue) {
+void WinCOFFObjectWriter::RecordRelocation(const MCAssembler &Asm,
+ const MCAsmLayout &Layout,
+ const MCFragment *Fragment,
+ const MCFixup &Fixup,
+ MCValue Target,
+ bool &IsPCRel,
+ uint64_t &FixedValue) {
assert(Target.getSymA() && "Relocation must reference a symbol!");
const MCSymbol &Symbol = Target.getSymA()->getSymbol();
OpenPOWER on IntegriCloud