projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[ms-inline-asm] Implement _emit directive (which is roughly equivalent to .byte).
[oota-llvm.git]
/
include
/
llvm
/
MC
/
MCAssembler.h
diff --git
a/include/llvm/MC/MCAssembler.h
b/include/llvm/MC/MCAssembler.h
index b7b2d663f4cc40425601b3215d7670079c89f32b..5771415c81cc42b6c962e9cdcce071bcd7b2fee6 100644
(file)
--- a/
include/llvm/MC/MCAssembler.h
+++ b/
include/llvm/MC/MCAssembler.h
@@
-40,8
+40,8
@@
class MCAsmBackend;
class MCFragment : public ilist_node<MCFragment> {
friend class MCAsmLayout;
class MCFragment : public ilist_node<MCFragment> {
friend class MCAsmLayout;
- MCFragment(const MCFragment&)
; // DO NOT IMPLEMENT
- void operator=(const MCFragment&)
; // DO NOT IMPLEMENT
+ MCFragment(const MCFragment&)
LLVM_DELETED_FUNCTION;
+ void operator=(const MCFragment&)
LLVM_DELETED_FUNCTION;
public:
enum FragmentType {
public:
enum FragmentType {
@@
-99,8
+99,6
@@
public:
unsigned getLayoutOrder() const { return LayoutOrder; }
void setLayoutOrder(unsigned Value) { LayoutOrder = Value; }
unsigned getLayoutOrder() const { return LayoutOrder; }
void setLayoutOrder(unsigned Value) { LayoutOrder = Value; }
- static bool classof(const MCFragment *O) { return true; }
-
void dump();
};
void dump();
};
@@
-151,7
+149,6
@@
public:
static bool classof(const MCFragment *F) {
return F->getKind() == MCFragment::FT_Data;
}
static bool classof(const MCFragment *F) {
return F->getKind() == MCFragment::FT_Data;
}
- static bool classof(const MCDataFragment *) { return true; }
};
// FIXME: This current incarnation of MCInstFragment doesn't make much sense, as
};
// FIXME: This current incarnation of MCInstFragment doesn't make much sense, as
@@
-176,7
+173,7
@@
public:
typedef SmallVectorImpl<MCFixup>::iterator fixup_iterator;
public:
typedef SmallVectorImpl<MCFixup>::iterator fixup_iterator;
public:
- MCInstFragment(
MCInst
_Inst, MCSectionData *SD = 0)
+ MCInstFragment(
const MCInst &
_Inst, MCSectionData *SD = 0)
: MCFragment(FT_Inst, SD), Inst(_Inst) {
}
: MCFragment(FT_Inst, SD), Inst(_Inst) {
}
@@
-191,7
+188,7
@@
public:
MCInst &getInst() { return Inst; }
const MCInst &getInst() const { return Inst; }
MCInst &getInst() { return Inst; }
const MCInst &getInst() const { return Inst; }
- void setInst(
MCInst
Value) { Inst = Value; }
+ void setInst(
const MCInst&
Value) { Inst = Value; }
/// @}
/// @name Fixup Access
/// @}
/// @name Fixup Access
@@
-213,7
+210,6
@@
public:
static bool classof(const MCFragment *F) {
return F->getKind() == MCFragment::FT_Inst;
}
static bool classof(const MCFragment *F) {
return F->getKind() == MCFragment::FT_Inst;
}
- static bool classof(const MCInstFragment *) { return true; }
};
class MCAlignFragment : public MCFragment {
};
class MCAlignFragment : public MCFragment {
@@
-225,7
+221,7
@@
class MCAlignFragment : public MCFragment {
/// Value - Value to use for filling padding bytes.
int64_t Value;
/// Value - Value to use for filling padding bytes.
int64_t Value;
- /// ValueSize - The size of the integer (in bytes) of \
arg
Value.
+ /// ValueSize - The size of the integer (in bytes) of \
p
Value.
unsigned ValueSize;
/// MaxBytesToEmit - The maximum number of bytes to emit; if the alignment
unsigned ValueSize;
/// MaxBytesToEmit - The maximum number of bytes to emit; if the alignment
@@
-263,7
+259,6
@@
public:
static bool classof(const MCFragment *F) {
return F->getKind() == MCFragment::FT_Align;
}
static bool classof(const MCFragment *F) {
return F->getKind() == MCFragment::FT_Align;
}
- static bool classof(const MCAlignFragment *) { return true; }
};
class MCFillFragment : public MCFragment {
};
class MCFillFragment : public MCFragment {
@@
-272,7
+267,7
@@
class MCFillFragment : public MCFragment {
/// Value - Value to use for filling bytes.
int64_t Value;
/// Value - Value to use for filling bytes.
int64_t Value;
- /// ValueSize - The size (in bytes) of \
arg
Value to use when filling, or 0 if
+ /// ValueSize - The size (in bytes) of \
p
Value to use when filling, or 0 if
/// this is a virtual fill fragment.
unsigned ValueSize;
/// this is a virtual fill fragment.
unsigned ValueSize;
@@
-302,7
+297,6
@@
public:
static bool classof(const MCFragment *F) {
return F->getKind() == MCFragment::FT_Fill;
}
static bool classof(const MCFragment *F) {
return F->getKind() == MCFragment::FT_Fill;
}
- static bool classof(const MCFillFragment *) { return true; }
};
class MCOrgFragment : public MCFragment {
};
class MCOrgFragment : public MCFragment {
@@
-331,7
+325,6
@@
public:
static bool classof(const MCFragment *F) {
return F->getKind() == MCFragment::FT_Org;
}
static bool classof(const MCFragment *F) {
return F->getKind() == MCFragment::FT_Org;
}
- static bool classof(const MCOrgFragment *) { return true; }
};
class MCLEBFragment : public MCFragment {
};
class MCLEBFragment : public MCFragment {
@@
-364,7
+357,6
@@
public:
static bool classof(const MCFragment *F) {
return F->getKind() == MCFragment::FT_LEB;
}
static bool classof(const MCFragment *F) {
return F->getKind() == MCFragment::FT_LEB;
}
- static bool classof(const MCLEBFragment *) { return true; }
};
class MCDwarfLineAddrFragment : public MCFragment {
};
class MCDwarfLineAddrFragment : public MCFragment {
@@
-401,7
+393,6
@@
public:
static bool classof(const MCFragment *F) {
return F->getKind() == MCFragment::FT_Dwarf;
}
static bool classof(const MCFragment *F) {
return F->getKind() == MCFragment::FT_Dwarf;
}
- static bool classof(const MCDwarfLineAddrFragment *) { return true; }
};
class MCDwarfCallFrameFragment : public MCFragment {
};
class MCDwarfCallFrameFragment : public MCFragment {
@@
-431,7
+422,6
@@
public:
static bool classof(const MCFragment *F) {
return F->getKind() == MCFragment::FT_DwarfFrame;
}
static bool classof(const MCFragment *F) {
return F->getKind() == MCFragment::FT_DwarfFrame;
}
- static bool classof(const MCDwarfCallFrameFragment *) { return true; }
};
// FIXME: Should this be a separate class, or just merged into MCSection? Since
};
// FIXME: Should this be a separate class, or just merged into MCSection? Since
@@
-440,8
+430,8
@@
public:
class MCSectionData : public ilist_node<MCSectionData> {
friend class MCAsmLayout;
class MCSectionData : public ilist_node<MCSectionData> {
friend class MCAsmLayout;
- MCSectionData(const MCSectionData&)
; // DO NOT IMPLEMENT
- void operator=(const MCSectionData&)
; // DO NOT IMPLEMENT
+ MCSectionData(const MCSectionData&)
LLVM_DELETED_FUNCTION;
+ void operator=(const MCSectionData&)
LLVM_DELETED_FUNCTION;
public:
typedef iplist<MCFragment> FragmentListType;
public:
typedef iplist<MCFragment> FragmentListType;
@@
-683,8
+673,8
@@
public:
typedef std::vector<DataRegionData>::iterator data_region_iterator;
private:
typedef std::vector<DataRegionData>::iterator data_region_iterator;
private:
- MCAssembler(const MCAssembler&)
; // DO NOT IMPLEMENT
- void operator=(const MCAssembler&)
; // DO NOT IMPLEMENT
+ MCAssembler(const MCAssembler&)
LLVM_DELETED_FUNCTION;
+ void operator=(const MCAssembler&)
LLVM_DELETED_FUNCTION;
MCContext &Context;
MCContext &Context;
@@
-738,7
+728,7
@@
private:
/// \param Value [out] On return, the value of the fixup as currently laid
/// out.
/// \return Whether the fixup value was fully resolved. This is true if the
/// \param Value [out] On return, the value of the fixup as currently laid
/// out.
/// \return Whether the fixup value was fully resolved. This is true if the
- /// \
arg
Value result is fixed, otherwise the value may change due to
+ /// \
p
Value result is fixed, otherwise the value may change due to
/// relocation.
bool evaluateFixup(const MCAsmLayout &Layout,
const MCFixup &Fixup, const MCFragment *DF,
/// relocation.
bool evaluateFixup(const MCAsmLayout &Layout,
const MCFixup &Fixup, const MCFragment *DF,
@@
-775,7
+765,7
@@
private:
public:
/// Compute the effective fragment size assuming it is laid out at the given
public:
/// Compute the effective fragment size assuming it is laid out at the given
- /// \
arg SectionAddress and \arg
FragmentOffset.
+ /// \
p SectionAddress and \p
FragmentOffset.
uint64_t computeFragmentSize(const MCAsmLayout &Layout,
const MCFragment &F) const;
uint64_t computeFragmentSize(const MCAsmLayout &Layout,
const MCFragment &F) const;
@@
-804,7
+794,7
@@
public:
public:
/// Construct a new assembler instance.
///
public:
/// Construct a new assembler instance.
///
- /// \
arg OS -
The stream to output to.
+ /// \
param OS
The stream to output to.
//
// FIXME: How are we going to parameterize this? Two obvious options are stay
// concrete and require clients to pass in a target like object. The other
//
// FIXME: How are we going to parameterize this? Two obvious options are stay
// concrete and require clients to pass in a target like object. The other
@@
-824,7
+814,7
@@
public:
MCObjectWriter &getWriter() const { return Writer; }
/// Finish - Do final processing and write the object to the output stream.
MCObjectWriter &getWriter() const { return Writer; }
/// Finish - Do final processing and write the object to the output stream.
- /// \
arg
Writer is used for custom object writer (as the MCJIT does),
+ /// \
p
Writer is used for custom object writer (as the MCJIT does),
/// if not specified it is automatically created from backend.
void Finish();
/// if not specified it is automatically created from backend.
void Finish();