Skip to content

Commit 91e598d

Browse files
run clang-format
1 parent 5604401 commit 91e598d

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

llvm/include/llvm/DebugInfo/DWARF/DWARFCFIProgram.h

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
#ifndef LLVM_DEBUGINFO_DWARF_DWARFDEBUGCFIPROGRAM_H
2-
#define LLVM_DEBUGINFO_DWARF_DWARFDEBUGCFIPROGRAM_H
1+
//===- DWARFCFIProgram.h ----------------------------------------*- C++ -*-===//
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+
//===----------------------------------------------------------------------===//
8+
9+
#ifndef LLVM_DEBUGINFO_DWARF_DWARFCFIPROGRAM_H
10+
#define LLVM_DEBUGINFO_DWARF_DWARFCFIPROGRAM_H
311

412
#include "llvm/ADT/ArrayRef.h"
513
#include "llvm/ADT/SmallString.h"
@@ -62,8 +70,7 @@ class CFIProgram {
6270
CFIProgram(uint64_t CodeAlignmentFactor, int64_t DataAlignmentFactor,
6371
Triple::ArchType Arch)
6472
: CodeAlignmentFactor(CodeAlignmentFactor),
65-
DataAlignmentFactor(DataAlignmentFactor),
66-
Arch(Arch) {}
73+
DataAlignmentFactor(DataAlignmentFactor), Arch(Arch) {}
6774

6875
/// Parse and store a sequence of CFI instructions from Data,
6976
/// starting at *Offset and ending at EndOffset. *Offset is updated
@@ -148,4 +155,4 @@ class CFIProgram {
148155

149156
} // end namespace llvm
150157

151-
#endif // LLVM_DEBUGINFO_DWARF_DWARFDEBUGCFIPROGRAM_H
158+
#endif // LLVM_DEBUGINFO_DWARF_DWARFCFIPROGRAM_H

llvm/lib/DebugInfo/DWARF/DWARFCFIProgram.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- DWARFDebugFrame.h - Parsing of .debug_frame ------------------------===//
1+
//===- DWARFCFIProgram.cpp - Parsing the cfi-portions of .debug_frame -----===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -35,7 +35,6 @@ static void printRegister(raw_ostream &OS, DIDumpOptions DumpOpts,
3535
OS << "reg" << RegNum;
3636
}
3737

38-
3938
// See DWARF standard v3, section 7.23
4039
const uint8_t DWARF_CFI_PRIMARY_OPCODE_MASK = 0xc0;
4140
const uint8_t DWARF_CFI_PRIMARY_OPERAND_MASK = 0x3f;
@@ -379,7 +378,7 @@ void CFIProgram::printOperand(raw_ostream &OS, DIDumpOptions DumpOpts,
379378
if (!OpcodeName.empty())
380379
OS << " " << OpcodeName;
381380
else
382-
OS << format(" Opcode %x", Opcode);
381+
OS << format(" Opcode %x", Opcode);
383382
break;
384383
}
385384
case OT_None:
@@ -408,13 +407,13 @@ void CFIProgram::printOperand(raw_ostream &OS, DIDumpOptions DumpOpts,
408407
if (DataAlignmentFactor)
409408
OS << format(" %" PRId64, int64_t(Operand) * DataAlignmentFactor);
410409
else
411-
OS << format(" %" PRId64 "*data_alignment_factor" , int64_t(Operand));
410+
OS << format(" %" PRId64 "*data_alignment_factor", int64_t(Operand));
412411
break;
413412
case OT_UnsignedFactDataOffset:
414413
if (DataAlignmentFactor)
415414
OS << format(" %" PRId64, Operand * DataAlignmentFactor);
416415
else
417-
OS << format(" %" PRId64 "*data_alignment_factor" , Operand);
416+
OS << format(" %" PRId64 "*data_alignment_factor", Operand);
418417
break;
419418
case OT_Register:
420419
OS << ' ';

0 commit comments

Comments
 (0)