File tree Expand file tree Collapse file tree 3 files changed +3
-17
lines changed Expand file tree Collapse file tree 3 files changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -190,10 +190,6 @@ class MCEncodedFragmentWithFixups : public MCEncodedFragment {
190
190
: MCEncodedFragment(FType, HasInstructions) {}
191
191
192
192
public:
193
-
194
- using const_fixup_iterator = SmallVectorImpl<MCFixup>::const_iterator;
195
- using fixup_iterator = SmallVectorImpl<MCFixup>::iterator;
196
-
197
193
SmallVectorImpl<char > &getContents () { return Contents; }
198
194
const SmallVectorImpl<char > &getContents () const { return Contents; }
199
195
@@ -204,12 +200,6 @@ class MCEncodedFragmentWithFixups : public MCEncodedFragment {
204
200
SmallVectorImpl<MCFixup> &getFixups () { return Fixups; }
205
201
const SmallVectorImpl<MCFixup> &getFixups () const { return Fixups; }
206
202
207
- fixup_iterator fixup_begin () { return Fixups.begin (); }
208
- const_fixup_iterator fixup_begin () const { return Fixups.begin (); }
209
-
210
- fixup_iterator fixup_end () { return Fixups.end (); }
211
- const_fixup_iterator fixup_end () const { return Fixups.end (); }
212
-
213
203
static bool classof (const MCFragment *F) {
214
204
MCFragment::FragmentType Kind = F->getKind ();
215
205
return Kind == MCFragment::FT_Relaxable || Kind == MCFragment::FT_Data ||
Original file line number Diff line number Diff line change @@ -829,7 +829,7 @@ void MCAssembler::writeSectionData(raw_ostream &OS,
829
829
// into a virtual section. This is to support clients which use standard
830
830
// directives to fill the contents of virtual sections.
831
831
const MCDataFragment &DF = cast<MCDataFragment>(F);
832
- if (DF.fixup_begin () != DF. fixup_end ())
832
+ if (DF.getFixups (). size ())
833
833
getContext ().reportError (SMLoc (), Sec->getVirtualSectionKind () +
834
834
" section '" + Sec->getName () +
835
835
" ' cannot have fixups" );
Original file line number Diff line number Diff line change @@ -150,14 +150,10 @@ LLVM_DUMP_METHOD void MCFragment::dump() const {
150
150
}
151
151
OS << " ] (" << Contents.size () << " bytes)" ;
152
152
153
- if (DF->fixup_begin () != DF-> fixup_end ()) {
153
+ if (DF->getFixups (). size ()) {
154
154
OS << " ,\n " ;
155
155
OS << " Fixups:[" ;
156
- for (MCDataFragment::const_fixup_iterator it = DF->fixup_begin (),
157
- ie = DF->fixup_end (); it != ie; ++it) {
158
- if (it != DF->fixup_begin ()) OS << " ,\n " ;
159
- OS << *it;
160
- }
156
+ interleave (DF->getFixups (), OS, " ,\n " );
161
157
OS << " ]" ;
162
158
}
163
159
break ;
You can’t perform that action at this time.
0 commit comments