[PATCH] D42199: [scudo] Fix for the Scudo interface function scope

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 17 15:12:52 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL322782: [scudo] Fix for the Scudo interface function scope (authored by cryptoad, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D42199

Files:
  compiler-rt/trunk/lib/scudo/scudo_allocator.cpp


Index: compiler-rt/trunk/lib/scudo/scudo_allocator.cpp
===================================================================
--- compiler-rt/trunk/lib/scudo/scudo_allocator.cpp
+++ compiler-rt/trunk/lib/scudo/scudo_allocator.cpp
@@ -17,6 +17,7 @@
 #include "scudo_allocator.h"
 #include "scudo_crc32.h"
 #include "scudo_flags.h"
+#include "scudo_interface_internal.h"
 #include "scudo_tsd.h"
 #include "scudo_utils.h"
 
@@ -735,10 +736,8 @@
 
 // Interface functions
 
-extern "C" {
 void __scudo_set_rss_limit(uptr LimitMb, s32 HardLimit) {
   if (!SCUDO_CAN_USE_PUBLIC_INTERFACE)
     return;
   Instance.setRssLimit(LimitMb, !!HardLimit);
 }
-}  // extern "C"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42199.130289.patch
Type: text/x-patch
Size: 661 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180117/2c867e3c/attachment.bin>


More information about the llvm-commits mailing list