MCAsmInfoWasm.cpp 853 B

12345678910111213141516171819202122232425
  1. //===-- MCAsmInfoWasm.cpp - Wasm asm properties -----------------*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. // This file defines target asm properties related what form asm statements
  10. // should take in general on Wasm-based targets
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #include "llvm/MC/MCAsmInfoWasm.h"
  14. using namespace llvm;
  15. void MCAsmInfoWasm::anchor() {}
  16. MCAsmInfoWasm::MCAsmInfoWasm() {
  17. HasIdentDirective = true;
  18. HasNoDeadStrip = true;
  19. WeakRefDirective = "\t.weak\t";
  20. PrivateGlobalPrefix = ".L";
  21. PrivateLabelPrefix = ".L";
  22. }