llvm.org GIT mirror llvm / 0e42ae9
80-column fixups. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203190 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 5 years ago
1 changed file(s) with 8 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
875875 static void emitDwarfRegOp(const AsmPrinter &AP, int Reg) {
876876 assert(Reg >= 0);
877877 if (Reg < 32) {
878 AP.OutStreamer.AddComment(dwarf::
879 OperationEncodingString(dwarf::DW_OP_reg0 + Reg));
878 AP.OutStreamer.AddComment(
879 dwarf::OperationEncodingString(dwarf::DW_OP_reg0 + Reg));
880880 AP.EmitInt8(dwarf::DW_OP_reg0 + Reg);
881881 } else {
882882 AP.OutStreamer.AddComment("DW_OP_regx");
891891 int Reg, int Offset, bool Deref) {
892892 assert(Reg >= 0);
893893 if (Reg < 32) {
894 AP.OutStreamer.AddComment(dwarf::
895 OperationEncodingString(dwarf::DW_OP_breg0 + Reg));
894 AP.OutStreamer.AddComment(
895 dwarf::OperationEncodingString(dwarf::DW_OP_breg0 + Reg));
896896 AP.EmitInt8(dwarf::DW_OP_breg0 + Reg);
897897 } else {
898898 AP.OutStreamer.AddComment("DW_OP_bregx");
10051005 if (Indirect || MLoc.isIndirect()) {
10061006 // FIXME: We have no reasonable way of handling errors in here. The
10071007 // caller might be in the middle of a dwarf expression. We should
1008 // probably assert that Reg >= 0 once debug info generation is more mature.
1009 OutStreamer.AddComment("nop (invalid dwarf register number for indirect loc)");
1008 // probably assert that Reg >= 0 once debug info generation is more
1009 // mature.
1010 OutStreamer.AddComment(
1011 "nop (invalid dwarf register number for indirect loc)");
10101012 EmitInt8(dwarf::DW_OP_nop);
10111013 return;
10121014 }