[PATCH] D20384: Refactor 1 symbol record

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Fri May 20 15:48:47 PDT 2016


rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.

rubber stamp, looks good =)


================
Comment at: tools/llvm-readobj/COFFDumper.cpp:1157-1166
@@ -1184,14 +1156,12 @@
+        case BinaryAnnotationsOpCode::ChangeFile:
+          printFileNameForOffset("ChangeFile", Annotation.U1);
           break;
         case BinaryAnnotationsOpCode::ChangeCodeOffsetAndLineOffset: {
-          uint32_t Annotation = GetCompressedAnnotation();
-          int32_t LineOffset = DecodeSignedOperand(Annotation >> 4);
-          uint32_t CodeOffset = Annotation & 0xf;
           W.startLine() << "ChangeCodeOffsetAndLineOffset: {CodeOffset: "
-                        << W.hex(CodeOffset) << ", LineOffset: " << LineOffset
-                        << "}\n";
+                        << W.hex(Annotation.U1)
+                        << ", LineOffset: " << Annotation.S1 << "}\n";
           break;
         }
         case BinaryAnnotationsOpCode::ChangeCodeLengthAndCodeOffset: {
-          uint32_t Length = GetCompressedAnnotation();
-          uint32_t CodeOffset = GetCompressedAnnotation();
           W.startLine() << "ChangeCodeLengthAndCodeOffset: {CodeOffset: "
+                        << W.hex(Annotation.U2)
----------------
Should this be consistent and use Annotation.Name?


http://reviews.llvm.org/D20384





More information about the llvm-commits mailing list