Skip to content

Commit

Permalink
Remove unused method and default values.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179124 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
espindola committed Apr 9, 2013
1 parent af12ad7 commit 27554ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
11 changes: 5 additions & 6 deletions include/llvm/MC/MCAssembler.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class MCFragment : public ilist_node<MCFragment> {
/// @}

protected:
MCFragment(FragmentType _Kind, MCSectionData *_Parent = 0);
MCFragment(FragmentType _Kind, MCSectionData *_Parent);

public:
// Only for sentinel.
Expand All @@ -92,7 +92,6 @@ class MCFragment : public ilist_node<MCFragment> {
FragmentType getKind() const { return Kind; }

MCSectionData *getParent() const { return Parent; }
void setParent(MCSectionData *Value) { Parent = Value; }

MCSymbolData *getAtom() const { return Atom; }
void setAtom(MCSymbolData *Value) { Atom = Value; }
Expand Down Expand Up @@ -133,7 +132,7 @@ class MCEncodedFragment : public MCFragment {

uint8_t BundlePadding;
public:
MCEncodedFragment(MCFragment::FragmentType FType, MCSectionData *SD = 0)
MCEncodedFragment(MCFragment::FragmentType FType, MCSectionData *SD)
: MCFragment(FType, SD), BundlePadding(0)
{
}
Expand Down Expand Up @@ -348,7 +347,7 @@ class MCAlignFragment : public MCFragment {

public:
MCAlignFragment(unsigned _Alignment, int64_t _Value, unsigned _ValueSize,
unsigned _MaxBytesToEmit, MCSectionData *SD = 0)
unsigned _MaxBytesToEmit, MCSectionData *SD)
: MCFragment(FT_Align, SD), Alignment(_Alignment),
Value(_Value),ValueSize(_ValueSize),
MaxBytesToEmit(_MaxBytesToEmit), EmitNops(false) {}
Expand Down Expand Up @@ -389,7 +388,7 @@ class MCFillFragment : public MCFragment {

public:
MCFillFragment(int64_t _Value, unsigned _ValueSize, uint64_t _Size,
MCSectionData *SD = 0)
MCSectionData *SD)
: MCFragment(FT_Fill, SD),
Value(_Value), ValueSize(_ValueSize), Size(_Size) {
assert((!ValueSize || (Size % ValueSize) == 0) &&
Expand Down Expand Up @@ -422,7 +421,7 @@ class MCOrgFragment : public MCFragment {
int8_t Value;

public:
MCOrgFragment(const MCExpr &_Offset, int8_t _Value, MCSectionData *SD = 0)
MCOrgFragment(const MCExpr &_Offset, int8_t _Value, MCSectionData *SD)
: MCFragment(FT_Org, SD),
Offset(&_Offset), Value(_Value) {}

Expand Down
3 changes: 1 addition & 2 deletions lib/MC/MCAssembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,7 @@ MCFragment::~MCFragment() {
MCFragment::MCFragment(FragmentType _Kind, MCSectionData *_Parent)
: Kind(_Kind), Parent(_Parent), Atom(0), Offset(~UINT64_C(0))
{
if (Parent)
Parent->getFragmentList().push_back(this);
Parent->getFragmentList().push_back(this);
}

/* *** */
Expand Down

0 comments on commit 27554ee

Please sign in to comment.