[PATCH] D22019: [esan:cfrag] Add option -esan-small-binary

Mike Aizatsky via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 6 11:34:34 PDT 2016


aizatsky requested changes to this revision.
This revision now requires changes to proceed.

================
Comment at: lib/Transforms/Instrumentation/EfficiencySanitizer.cpp:381
@@ -331,3 +380,3 @@
   //   u32 NumFields;
-  //   u32 *FieldOffsets;
+  //   u32 *FieldOffset;
   //   u32 *FieldSize;
----------------
Add something like:

 FieldOffset;  // not present in small binary.

================
Comment at: test/Instrumentation/EfficiencySanitizer/struct_field_count_basic.ll:12
@@ -11,6 +11,3 @@
 ; CHECK:        @0 = private unnamed_addr constant [8 x i8] c"<stdin>\00", align 1
-; CHECK-NEXT:   @1 = private unnamed_addr constant [17 x i8] c"struct.A#2#11#11\00", align 1
-; CHECK-NEXT:   @"struct.A#2#11#11" = weak global [3 x i64] zeroinitializer
-; CHECK-NEXT:   @2 = internal constant [2 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @5, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @6, i32 0, i32 0)]
-; CHECK-NEXT:   @3 = internal constant [2 x i32] [i32 0, i32 4]
-; CHECK-NEXT:   @4 = internal constant [2 x i32] [i32 4, i32 4]
+; CHECK-NEXT:   @1 = internal constant [2 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @5, i32 0, i32 0)]
+; CHECK-NEXT:   @2 = internal constant [2 x i32] [i32 0, i32 4]
----------------
Why did this change? Because of the order? Why did the order change?


http://reviews.llvm.org/D22019





More information about the llvm-commits mailing list