[PATCH] D63764: [Sanitizers] Remove obsolete OpenFile from sanitizer_solaris.cc

Rainer Orth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 25 05:45:45 PDT 2019


ro created this revision.
ro added a reviewer: kcc.
ro added a project: Sanitizers.
Herald added subscribers: Sanitizers, fedor.sergeev, kubamracek.
Herald added a project: LLVM.

I noticed that the instance of `OpenFile` in `sanitizer_solaris.cc` is no longer needed.

Removed as follows, tested on `x86_64-pc-solaris2.11`.  Ok for trunk?


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D63764

Files:
  lib/sanitizer_common/sanitizer_solaris.cc


Index: lib/sanitizer_common/sanitizer_solaris.cc
===================================================================
--- lib/sanitizer_common/sanitizer_solaris.cc
+++ lib/sanitizer_common/sanitizer_solaris.cc
@@ -88,11 +88,6 @@
   return _REAL64(open)(filename, flags, mode);
 }
 
-uptr OpenFile(const char *filename, bool write) {
-  return ReserveStandardFds(
-      internal_open(filename, write ? O_WRONLY | O_CREAT : O_RDONLY, 0660));
-}
-
 DECLARE__REAL_AND_INTERNAL(uptr, read, fd_t fd, void *buf, uptr count) {
   return _REAL(read)(fd, buf, count);
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63764.206416.patch
Type: text/x-patch
Size: 561 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190625/798f5734/attachment.bin>


More information about the llvm-commits mailing list