LLVM
22.0.0git
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/MCDirectives.h
"
11
#include "
llvm/MC/MCStreamer.h
"
12
namespace
llvm
{
13
class
MCContext
;
14
class
MCExpr
;
15
class
MCSection
;
16
class
MCSymbol
;
17
}
// namespace llvm
18
19
using namespace
llvm
;
20
21
namespace
{
22
23
class
MCNullStreamer :
public
MCStreamer {
24
public
:
25
MCNullStreamer(MCContext &
Context
) : MCStreamer(
Context
) {}
26
27
/// @name MCStreamer Interface
28
/// @{
29
30
bool
hasRawTextSupport()
const override
{
return
true
; }
31
void
emitRawTextImpl(StringRef
String
)
override
{}
32
33
bool
emitSymbolAttribute(MCSymbol *Symbol,
34
MCSymbolAttr
Attribute
)
override
{
35
return
true
;
36
}
37
38
void
emitCommonSymbol(MCSymbol *Symbol, uint64_t
Size
,
39
Align ByteAlignment)
override
{}
40
void
emitSubsectionsViaSymbols()
override
{};
41
void
beginCOFFSymbolDef(
const
MCSymbol *Symbol)
override
{}
42
void
emitCOFFSymbolStorageClass(
int
StorageClass
)
override
{}
43
void
emitCOFFSymbolType(
int
Type
)
override
{}
44
void
endCOFFSymbolDef()
override
{}
45
void
46
emitXCOFFSymbolLinkageWithVisibility(MCSymbol *Symbol,
MCSymbolAttr
Linkage
,
47
MCSymbolAttr
Visibility)
override
{}
48
};
49
50
}
51
52
MCStreamer
*
llvm::createNullStreamer
(
MCContext
&Context) {
53
return
new
MCNullStreamer(Context);
54
}
Linkage
DXIL Finalize Linkage
Definition
DXILFinalizeLinkage.cpp:76
InlinePriorityMode::Size
@ Size
Definition
InlineOrder.cpp:25
TemplateParamKind::Type
@ Type
Definition
ItaniumDemangle.h:1243
MCDirectives.h
MCStreamer.h
Context
@ Context
Definition
MemProfContextDisambiguation.cpp:124
StringRef.h
llvm::MCContext
Context object for machine code objects.
Definition
MCContext.h:83
llvm::MCExpr
Base class for the full range of assembler expressions which are needed for parsing.
Definition
MCExpr.h:34
llvm::MCSection
Instances of this class represent a uniqued identifier for a section in the current translation unit.
Definition
MCSection.h:521
llvm::MCStreamer
Streaming machine code generation interface.
Definition
MCStreamer.h:220
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition
MCSymbol.h:42
llvm::XCOFF::StorageClass
StorageClass
Definition
XCOFF.h:171
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
AddressRanges.h:18
llvm::createNullStreamer
LLVM_ABI MCStreamer * createNullStreamer(MCContext &Ctx)
Create a dummy machine code streamer, which does nothing.
Definition
MCNullStreamer.cpp:52
llvm::HighlightColor::String
@ String
Definition
WithColor.h:29
llvm::HighlightColor::Attribute
@ Attribute
Definition
WithColor.h:31
llvm::MCSymbolAttr
MCSymbolAttr
Definition
MCDirectives.h:18
Generated on
for LLVM by
1.14.0