Skip to content

Commit c4788bf

Browse files
authored
[NFC][LLVM][Support] Misc code cleanup in ScopedPrinter (#161462)
Add missing file header to ScopedPrinter.cpp and adjust the code to conform to LLVM coding standards.
1 parent 56ca23c commit c4788bf

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

llvm/lib/Support/ScopedPrinter.cpp

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1-
#include "llvm/Support/ScopedPrinter.h"
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
28

9+
#include "llvm/Support/ScopedPrinter.h"
310
#include "llvm/Support/Format.h"
411

5-
using namespace llvm::support;
12+
using namespace llvm;
613

7-
namespace llvm {
8-
9-
raw_ostream &operator<<(raw_ostream &OS, const HexNumber &Value) {
14+
raw_ostream &llvm::operator<<(raw_ostream &OS, const HexNumber &Value) {
1015
OS << "0x" << utohexstr(Value.Value);
1116
return OS;
1217
}
@@ -45,5 +50,3 @@ JSONScopedPrinter::JSONScopedPrinter(
4550
if (this->OuterScope)
4651
this->OuterScope->setPrinter(*this);
4752
}
48-
49-
} // namespace llvm

0 commit comments

Comments
 (0)