blob: 63b688d20fd1f7a78ca310dd4a533a326f38d266 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
//===------ AMDILAsmBackend.cpp - AMDIL Assembly Backend ---===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//==-----------------------------------------------------------------------===//
//
//
#include "AMDILAsmBackend.h"
#include "llvm/Support/TargetRegistry.h"
using namespace llvm;
namespace llvm {
ASM_BACKEND_CLASS* createAMDILAsmBackend(const ASM_BACKEND_CLASS &T,
const std::string &TT)
{
return new AMDILAsmBackend(T);
}
} // namespace llvm
//===--------------------- Default AMDIL Asm Backend ---------------------===//
AMDILAsmBackend::AMDILAsmBackend(const ASM_BACKEND_CLASS &T)
: ASM_BACKEND_CLASS()
{
}
MCObjectWriter *
AMDILAsmBackend::createObjectWriter(raw_ostream &OS) const
{
return 0;
}
bool
AMDILAsmBackend::doesSectionRequireSymbols(const MCSection &Section) const
{
return false;
}
bool
AMDILAsmBackend::isSectionAtomizable(const MCSection &Section) const
{
return true;
}
bool
AMDILAsmBackend::isVirtualSection(const MCSection &Section) const
{
return false;
//const MCSectionELF &SE = static_cast<const MCSectionELF&>(Section);
//return SE.getType() == MCSectionELF::SHT_NOBITS;
}
void
AMDILAsmBackend::ApplyFixup(const MCFixup &Fixup, char *Data, unsigned DataSize,
uint64_t Value) const
{
}
bool
AMDILAsmBackend::MayNeedRelaxation(const MCInst &Inst) const
{
return false;
}
void
AMDILAsmBackend::RelaxInstruction(const MCInst &Inst,
MCInst &Res) const
{
}
bool
AMDILAsmBackend::WriteNopData(uint64_t Count, MCObjectWriter *OW) const
{
return false;
}
unsigned
AMDILAsmBackend::getNumFixupKinds() const
{
return 0;
}
|