summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-03-07 21:27:42 +0000
committerEric Christopher <echristo@gmail.com>2014-03-07 21:27:42 +0000
commit5c30320c5feb569629d733e3f7816e600da1e129 (patch)
tree3554e193d7729d37246bf4aa12759ef6efe895f6 /llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
parent4ccce1b728bd31725f62b57c2dd6466ff78002ba (diff)
downloadbcm5719-llvm-5c30320c5feb569629d733e3f7816e600da1e129.tar.gz
bcm5719-llvm-5c30320c5feb569629d733e3f7816e600da1e129.zip
Fix up formatting.
llvm-svn: 203286
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
index ba791931fb8..3741ef0398d 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
@@ -184,7 +184,6 @@ void AsmPrinter::EmitSectionOffset(const MCSymbol *Label,
EmitLabelDifference(Label, SectionLabel, 4);
}
-
/// Emit a dwarf register operation.
static void emitDwarfRegOp(const AsmPrinter &AP, int Reg) {
assert(Reg >= 0);
@@ -201,8 +200,8 @@ static void emitDwarfRegOp(const AsmPrinter &AP, int Reg) {
}
/// Emit an (double-)indirect dwarf register operation.
-static void emitDwarfRegOpIndirect(const AsmPrinter &AP,
- int Reg, int Offset, bool Deref) {
+static void emitDwarfRegOpIndirect(const AsmPrinter &AP, int Reg, int Offset,
+ bool Deref) {
assert(Reg >= 0);
if (Reg < 32) {
AP.OutStreamer.AddComment(
@@ -222,8 +221,8 @@ static void emitDwarfRegOpIndirect(const AsmPrinter &AP,
/// Emit a dwarf register operation for describing
/// - a small value occupying only part of a register or
/// - a small register representing only part of a value.
-static void emitDwarfOpPiece(const AsmPrinter &AP,
- unsigned Size, unsigned Offset) {
+static void emitDwarfOpPiece(const AsmPrinter &AP, unsigned Size,
+ unsigned Offset) {
assert(Size > 0);
if (Offset > 0) {
AP.OutStreamer.AddComment("DW_OP_bit_piece");
@@ -273,7 +272,7 @@ static void EmitDwarfRegOpPiece(const AsmPrinter &AP,
// efficient DW_OP_piece.
unsigned CurPos = 0;
// The size of the register in bits, assuming 8 bits per byte.
- unsigned RegSize = TRI->getMinimalPhysRegClass(MLoc.getReg())->getSize()*8;
+ unsigned RegSize = TRI->getMinimalPhysRegClass(MLoc.getReg())->getSize() * 8;
// Keep track of the bits in the register we already emitted, so we
// can avoid emitting redundant aliasing subregs.
SmallBitVector Coverage(RegSize, false);
@@ -286,7 +285,7 @@ static void EmitDwarfRegOpPiece(const AsmPrinter &AP,
// Intersection between the bits we already emitted and the bits
// covered by this subregister.
SmallBitVector Intersection(RegSize, false);
- Intersection.set(Offset, Offset+Size);
+ Intersection.set(Offset, Offset + Size);
Intersection ^= Coverage;
// If this sub-register has a DWARF number and we haven't covered
@@ -295,10 +294,10 @@ static void EmitDwarfRegOpPiece(const AsmPrinter &AP,
AP.OutStreamer.AddComment("sub-register");
emitDwarfRegOp(AP, Reg);
emitDwarfOpPiece(AP, Size, Offset == CurPos ? 0 : Offset);
- CurPos = Offset+Size;
+ CurPos = Offset + Size;
// Mark it as emitted.
- Coverage.set(Offset, Offset+Size);
+ Coverage.set(Offset, Offset + Size);
}
}
OpenPOWER on IntegriCloud