[PATCH] D20747: [esan] Add support for log_exe_name

Derek Bruening via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 2 13:57:11 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL271586: [esan] Add support for log_exe_name (authored by bruening).

Changed prior to commit:
  http://reviews.llvm.org/D20747?vs=58827&id=59452#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D20747

Files:
  compiler-rt/trunk/lib/esan/esan.cpp
  compiler-rt/trunk/test/esan/TestCases/verbose-simple.c

Index: compiler-rt/trunk/test/esan/TestCases/verbose-simple.c
===================================================================
--- compiler-rt/trunk/test/esan/TestCases/verbose-simple.c
+++ compiler-rt/trunk/test/esan/TestCases/verbose-simple.c
@@ -1,5 +1,5 @@
 // RUN: %clang_esan_frag -O0 %s -o %t 2>&1
-// RUN: %env_esan_opts=verbosity=1 %run %t 2>&1 | FileCheck %s
+// RUN: %env_esan_opts="verbosity=1 log_exe_name=1" %run %t 2>&1 | FileCheck %s
 
 int main(int argc, char **argv) {
   // CHECK:      in esan::initializeLibrary
@@ -9,6 +9,6 @@
   // CHECK-NEXT: Shadow #1: [124000000000-12c000000000) (512GB)
   // CHECK-NEXT: Shadow #2: [148000000000-150000000000) (512GB)
   // CHECK-NEXT: in esan::finalizeLibrary
-  // CHECK-NEXT: {{.*}}EfficiencySanitizer is not finished: nothing yet to report
+  // CHECK-NEXT: ==verbose-simple{{.*}}EfficiencySanitizer is not finished: nothing yet to report
   return 0;
 }
Index: compiler-rt/trunk/lib/esan/esan.cpp
===================================================================
--- compiler-rt/trunk/lib/esan/esan.cpp
+++ compiler-rt/trunk/lib/esan/esan.cpp
@@ -181,6 +181,7 @@
   }
   WhichTool = Tool;
   SanitizerToolName = "EfficiencySanitizer";
+  CacheBinaryName();
   initializeFlags();
 
   // Intercepting libc _exit or exit via COMMON_INTERCEPTOR_ON_EXIT only


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20747.59452.patch
Type: text/x-patch
Size: 1325 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160602/b48a89c3/attachment.bin>


More information about the llvm-commits mailing list