mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
f73e4af6a5
Add an WASM_SYMBOL_NO_STRIP flag, so that __attribute__((used)) doesn't need to imply exporting. When targeting Emscripten, have WASM_SYMBOL_NO_STRIP imply exporting. Differential Revision: https://reviews.llvm.org/D62542 llvm-svn: 370415
19 lines
727 B
C++
19 lines
727 B
C++
//===-- MCWasmObjectTargetWriter.cpp - Wasm Target Writer Subclass --------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "llvm/MC/MCWasmObjectWriter.h"
|
|
|
|
using namespace llvm;
|
|
|
|
MCWasmObjectTargetWriter::MCWasmObjectTargetWriter(bool Is64Bit,
|
|
bool IsEmscripten)
|
|
: Is64Bit(Is64Bit), IsEmscripten(IsEmscripten) {}
|
|
|
|
// Pin the vtable to this object file
|
|
MCWasmObjectTargetWriter::~MCWasmObjectTargetWriter() = default;
|