[llvm] r225726 - Run clang-format on the parts of AsmPrinterDwarf where it improves the

Adrian Prantl aprantl at apple.com
Mon Jan 12 15:03:23 PST 2015


Author: adrian
Date: Mon Jan 12 17:03:23 2015
New Revision: 225726

URL: http://llvm.org/viewvc/llvm-project?rev=225726&view=rev
Log:
Run clang-format on the parts of AsmPrinterDwarf where it improves the
readability.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp?rev=225726&r1=225725&r2=225726&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp Mon Jan 12 17:03:23 2015
@@ -35,22 +35,21 @@ using namespace llvm;
 /// DwarfExpression implementation for .debug_loc entries.
 class DebugLocDwarfExpression : public DwarfExpression {
   ByteStreamer &BS;
+
 public:
   DebugLocDwarfExpression(TargetMachine &TM, ByteStreamer &BS)
-    : DwarfExpression(TM), BS(BS) {}
+      : DwarfExpression(TM), BS(BS) {}
 
-  void EmitOp(uint8_t Op, const char* Comment) override;
+  void EmitOp(uint8_t Op, const char *Comment) override;
   void EmitSigned(int Value) override;
   void EmitUnsigned(unsigned Value) override;
-  unsigned getFrameRegister() override {
-    llvm_unreachable("not available");
-  };
+  unsigned getFrameRegister() override { llvm_unreachable("not available"); };
 };
 
-void DebugLocDwarfExpression::EmitOp(uint8_t Op, const char* Comment) {
-  BS.EmitInt8(Op, Comment
-    ? Twine(Comment)+" "+dwarf::OperationEncodingString(Op)
-    : dwarf::OperationEncodingString(Op));
+void DebugLocDwarfExpression::EmitOp(uint8_t Op, const char *Comment) {
+  BS.EmitInt8(
+      Op, Comment ? Twine(Comment) + " " + dwarf::OperationEncodingString(Op)
+                  : dwarf::OperationEncodingString(Op));
 }
 void DebugLocDwarfExpression::EmitSigned(int Value) {
   BS.EmitSLEB128(Value, Twine(Value));
@@ -59,7 +58,6 @@ void DebugLocDwarfExpression::EmitUnsign
   BS.EmitULEB128(Value, Twine(Value));
 }
 
-
 //===----------------------------------------------------------------------===//
 // Dwarf Emission Helper Routines
 //===----------------------------------------------------------------------===//
@@ -249,8 +247,8 @@ void AsmPrinter::EmitDwarfRegOp(ByteStre
       // caller might be in the middle of a dwarf expression. We should
       // probably assert that Reg >= 0 once debug info generation is more
       // mature.
-    return Expr.EmitOp(dwarf::DW_OP_nop,
-                       "nop (could not find a dwarf register number)");
+      return Expr.EmitOp(dwarf::DW_OP_nop,
+                         "nop (could not find a dwarf register number)");
 
     // Attempt to find a valid super- or sub-register.
     return Expr.AddMachineRegPiece(MLoc.getReg());





More information about the llvm-commits mailing list