Skip to content

Commit 6001464

Browse files
committed
Fix formatting & move method out of anonymous namespace
1 parent 0e5c36a commit 6001464

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/MC/GOFFObjectWriter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ class TextStream : public raw_ostream {
445445

446446
~TextStream() { flush(); }
447447
};
448+
} // namespace
448449

449450
void TextStream::write_impl(const char *Ptr, size_t Size) {
450451
size_t WrittenLength = 0;
@@ -471,7 +472,6 @@ void TextStream::write_impl(const char *Ptr, size_t Size) {
471472
Offset += ToWriteLength;
472473
}
473474
}
474-
} // namespace
475475

476476
void GOFFWriter::writeText(const MCSectionGOFF *Section) {
477477
// A BSS section contains only zeros, no need to write this.
@@ -506,7 +506,7 @@ uint64_t GOFFWriter::writeObject() {
506506
defineSymbols();
507507

508508
for (const MCSection &Section : Asm)
509-
writeText(static_cast<const MCSectionGOFF*>(&Section));
509+
writeText(static_cast<const MCSectionGOFF *>(&Section));
510510

511511
writeEnd();
512512

0 commit comments

Comments
 (0)