[ASan] Small fix to please tests on Windows, where stack unwinding using provided pc/bp works too bad

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161575 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/asan/asan_report.cc b/lib/asan/asan_report.cc
index 0cb6c35..82b5b0d 100644
--- a/lib/asan/asan_report.cc
+++ b/lib/asan/asan_report.cc
@@ -221,8 +221,13 @@
   AsanPrintf("\n");
 }
 
-void ReportInvalidMemoryAccess(uptr pc, uptr bp, uptr sp, uptr addr,
-                               bool is_write, uptr access_size) {
+}  // namespace __asan
+
+// --------------------------- Interface --------------------- {{{1
+using namespace __asan;  // NOLINT
+
+void __asan_report_error(uptr pc, uptr bp, uptr sp,
+                         uptr addr, bool is_write, uptr access_size) {
   static atomic_uint32_t num_calls;
   if (atomic_fetch_add(&num_calls, 1, memory_order_relaxed) != 0) {
     // Do not print more than one report, otherwise they will mix up.
@@ -323,16 +328,6 @@
   Die();
 }
 
-}  // namespace __asan
-
-// --------------------------- Interface --------------------- {{{1
-using namespace __asan;  // NOLINT
-
-void __asan_report_error(uptr pc, uptr bp, uptr sp,
-                         uptr addr, bool is_write, uptr access_size) {
-  ReportInvalidMemoryAccess(pc, bp, sp, addr, is_write, access_size);
-}
-
 void NOINLINE __asan_set_error_report_callback(void (*callback)(const char*)) {
   error_report_callback = callback;
   if (callback) {
diff --git a/lib/asan/asan_report.h b/lib/asan/asan_report.h
index 070ee46..101797e 100644
--- a/lib/asan/asan_report.h
+++ b/lib/asan/asan_report.h
@@ -39,8 +39,5 @@
 void NORETURN ReportStringFunctionMemoryRangesOverlap(
     const char *function, const char *offset1, uptr length1,
     const char *offset2, uptr length2, AsanStackTrace *stack);
-// Generic error report.
-void NORETURN ReportInvalidMemoryAccess(uptr pc, uptr bp, uptr sp, uptr addr,
-                                        bool is_write, uptr access_size);
 
 }  // namespace __asan