summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-01-12 23:03:23 +0000
committerAdrian Prantl <aprantl@apple.com>2015-01-12 23:03:23 +0000
commit337e360279c336228da165407858b626d461b3c7 (patch)
treec7d950d357e843ce7f74c8384700c5cca94625b9 /llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
parentf3b61be2eed8c66b7c920fa78639b12ca365c7f3 (diff)
downloadbcm5719-llvm-337e360279c336228da165407858b626d461b3c7.tar.gz
bcm5719-llvm-337e360279c336228da165407858b626d461b3c7.zip
Run clang-format on the parts of AsmPrinterDwarf where it improves the
readability. llvm-svn: 225726
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp22
1 files changed, 10 insertions, 12 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
index 8d23ec5133e..9a3377a49b6 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
@@ -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::EmitUnsigned(unsigned Value) {
BS.EmitULEB128(Value, Twine(Value));
}
-
//===----------------------------------------------------------------------===//
// Dwarf Emission Helper Routines
//===----------------------------------------------------------------------===//
@@ -249,8 +247,8 @@ void AsmPrinter::EmitDwarfRegOp(ByteStreamer &Streamer,
// 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());
OpenPOWER on IntegriCloud