LLVM
10.0.0svn
lib
MC
MCNullStreamer.cpp
Go to the documentation of this file.
1
//===- lib/MC/MCNullStreamer.cpp - Dummy Streamer Implementation ----------===//
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
#include "
llvm/ADT/StringRef.h
"
10
#include "
llvm/MC/MCInst.h
"
11
#include "
llvm/MC/MCStreamer.h
"
12
#include "
llvm/MC/MCSymbol.h
"
13
14
using namespace
llvm
;
15
16
namespace
{
17
18
class
MCNullStreamer :
public
MCStreamer
{
19
public
:
20
MCNullStreamer(
MCContext
&
Context
) :
MCStreamer
(Context) {}
21
22
/// @name MCStreamer Interface
23
/// @{
24
25
bool
hasRawTextSupport()
const override
{
return
true
; }
26
void
EmitRawTextImpl(
StringRef
String
)
override
{}
27
28
bool
EmitSymbolAttribute(
MCSymbol
*
Symbol
,
29
MCSymbolAttr
Attribute
)
override
{
30
return
true
;
31
}
32
33
void
EmitCommonSymbol(
MCSymbol
*
Symbol
, uint64_t
Size
,
34
unsigned
ByteAlignment
)
override
{}
35
void
EmitZerofill(
MCSection
*
Section
,
MCSymbol
*
Symbol
=
nullptr
,
36
uint64_t
Size
= 0,
unsigned
ByteAlignment
= 0,
37
SMLoc
Loc =
SMLoc
())
override
{}
38
void
EmitGPRel32Value(
const
MCExpr
*
Value
)
override
{}
39
void
BeginCOFFSymbolDef(
const
MCSymbol
*
Symbol
)
override
{}
40
void
EmitCOFFSymbolStorageClass(
int
StorageClass
)
override
{}
41
void
EmitCOFFSymbolType(
int
Type
)
override
{}
42
void
EndCOFFSymbolDef()
override
{}
43
};
44
45
}
46
47
MCStreamer
*
llvm::createNullStreamer
(
MCContext
&
Context
) {
48
return
new
MCNullStreamer(Context);
49
}
llvm::MCSection
Instances of this class represent a uniqued identifier for a section in the current translation unit...
Definition:
MCSection.h:39
Context
LLVMContext & Context
Definition:
NVVMIntrRange.cpp:71
llvm::ARMBuildAttrs::Symbol
Definition:
ARMBuildAttributes.h:77
llvm
This class represents lattice values for constants.
Definition:
AllocatorList.h:23
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition:
MCSymbol.h:41
llvm::createNullStreamer
MCStreamer * createNullStreamer(MCContext &Ctx)
Create a dummy machine code streamer, which does nothing.
Definition:
MCNullStreamer.cpp:47
StorageClass
COFF::SymbolStorageClass StorageClass
Definition:
COFFYAML.cpp:356
MCStreamer.h
llvm::MCExpr
Base class for the full range of assembler expressions which are needed for parsing.
Definition:
MCExpr.h:35
llvm::MCContext
Context object for machine code objects.
Definition:
MCContext.h:65
llvm::MCStreamer
Streaming machine code generation interface.
Definition:
MCStreamer.h:196
llvm::Type
The instances of the Type class are immutable: once they are created, they are never changed...
Definition:
Type.h:46
MCInst.h
llvm::LCOMM::ByteAlignment
Definition:
MCAsmInfo.h:50
llvm::ARMBuildAttrs::Section
Legacy Tags.
Definition:
ARMBuildAttributes.h:76
MCSymbol.h
llvm::Attribute
Definition:
Attributes.h:51
StringRef.h
llvm::HighlightColor::String
llvm::MCSymbolAttr
MCSymbolAttr
Definition:
MCDirectives.h:18
Size
uint32_t Size
Definition:
Profile.cpp:46
llvm::Value
LLVM Value Representation.
Definition:
Value.h:74
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition:
StringRef.h:48
llvm::SMLoc
Represents a location in source code.
Definition:
SMLoc.h:23
Generated on Mon Nov 4 2019 00:36:48 for LLVM by
1.8.13