diff options
author | Sam Clegg <sbc@chromium.org> | 2019-03-28 02:07:28 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2019-03-28 02:07:28 +0000 |
commit | a5e175c60cf25a20c87534a0ff852ac199ee362b (patch) | |
tree | b3c844375610ab8912a40568f1ae327af130ebf5 /llvm/lib/MC/WasmObjectWriter.cpp | |
parent | a9958fc30d0c6d4c140be892c5a824b827d2eb5d (diff) | |
download | bcm5719-llvm-a5e175c60cf25a20c87534a0ff852ac199ee362b.tar.gz bcm5719-llvm-a5e175c60cf25a20c87534a0ff852ac199ee362b.zip |
[WebAssembly] Rename wasm fixup kinds
These fixup kinds are not explicitly related to the code section. They
are there to signal how to apply the fixup.
Also, a couple of other minor wasm cleanups.
Differential Revision: https://reviews.llvm.org/D59908
llvm-svn: 357145
Diffstat (limited to 'llvm/lib/MC/WasmObjectWriter.cpp')
-rw-r--r-- | llvm/lib/MC/WasmObjectWriter.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/MC/WasmObjectWriter.cpp b/llvm/lib/MC/WasmObjectWriter.cpp index adf0aef1202..4c609526237 100644 --- a/llvm/lib/MC/WasmObjectWriter.cpp +++ b/llvm/lib/MC/WasmObjectWriter.cpp @@ -269,9 +269,6 @@ class WasmObjectWriter : public MCObjectWriter { // TargetObjectWriter wrappers. bool is64Bit() const { return TargetObjectWriter->is64Bit(); } - unsigned getRelocType(const MCValue &Target, const MCFixup &Fixup) const { - return TargetObjectWriter->getRelocType(Target, Fixup); - } void startSection(SectionBookkeeping &Section, unsigned SectionId); void startCustomSection(SectionBookkeeping &Section, StringRef Name); @@ -508,7 +505,7 @@ void WasmObjectWriter::recordRelocation(MCAssembler &Asm, // be negative and don't wrap. FixedValue = 0; - unsigned Type = getRelocType(Target, Fixup); + unsigned Type = TargetObjectWriter->getRelocType(Target, Fixup); assert(!IsPCRel); assert(SymA); |