Skip to content

Commit

Permalink
[clang][Interp][NFC] Simplify dump() indentation
Browse files Browse the repository at this point in the history
Use llvm::raw_ostream::indent().
  • Loading branch information
tbaederr committed May 31, 2023
1 parent 8e9baa9 commit 39f4bd2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions clang/lib/AST/Interp/Disasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ LLVM_DUMP_METHOD void Function::dump(llvm::raw_ostream &OS) const {

auto PrintName = [&OS](const char *Name) {
OS << Name;
for (long I = 0, N = strlen(Name); I < 30 - N; ++I) {
OS << ' ';
}
OS.indent(std::max(30l - strlen(Name), 0ul));
};

for (CodePtr Start = getCodeBegin(), PC = Start; PC != getCodeEnd();) {
Expand Down

0 comments on commit 39f4bd2

Please sign in to comment.