LLVM  5.0.0
MCAsmInfoWasm.cpp
Go to the documentation of this file.
1 //===-- MCAsmInfoWasm.cpp - Wasm asm properties -----------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file defines target asm properties related what form asm statements
11 // should take in general on Wasm-based targets
12 //
13 //===----------------------------------------------------------------------===//
14 
15 #include "llvm/MC/MCAsmInfoWasm.h"
16 #include "llvm/MC/MCContext.h"
17 #include "llvm/MC/MCSectionWasm.h"
18 using namespace llvm;
19 
20 void MCAsmInfoWasm::anchor() { }
21 
23  HasIdentDirective = true;
24  WeakRefDirective = "\t.weak\t";
25  PrivateGlobalPrefix = ".L";
26  PrivateLabelPrefix = ".L";
27 }
StringRef PrivateLabelPrefix
This prefix is used for labels for basic blocks.
Definition: MCAsmInfo.h:123
bool HasIdentDirective
True if the target has a .ident directive, this is true for ELF targets.
Definition: MCAsmInfo.h:277
const char * WeakRefDirective
This directive, if non-null, is used to declare a global as being a weak undefined symbol...
Definition: MCAsmInfo.h:292
StringRef PrivateGlobalPrefix
This prefix is used for globals like constant pool entries that are completely private to the ...
Definition: MCAsmInfo.h:119