diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-04-23 08:18:09 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-04-23 08:18:09 +0000 |
commit | e7540e3561f13cfc01bcf2035fad3e3dcf10a2fc (patch) | |
tree | 0d7ebb6f5ae64b4c908ce46998bf026d890f2c4c | |
parent | 6f2f66b63f52b9688958544491f07a2594b163d8 (diff) | |
download | bcm5719-llvm-e7540e3561f13cfc01bcf2035fad3e3dcf10a2fc.tar.gz bcm5719-llvm-e7540e3561f13cfc01bcf2035fad3e3dcf10a2fc.zip |
[Sanitizer] Delete unused function
llvm-svn: 180082
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_common.h | 1 | ||||
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_linux.cc | 14 |
2 files changed, 0 insertions, 15 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common.h b/compiler-rt/lib/sanitizer_common/sanitizer_common.h index 9df510b85bd..15847a79ae4 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common.h @@ -130,7 +130,6 @@ void DisableCoreDumper(); void DumpProcessMap(); bool FileExists(const char *filename); const char *GetEnv(const char *name); -bool SetEnv(const char *name, const char *value); const char *GetPwd(); u32 GetUid(); void ReExec(); diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc index ef185571ada..cd651935b68 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc @@ -264,20 +264,6 @@ const char *GetEnv(const char *name) { return 0; // Not found. } -// Does not compile for Go because dlsym() requires -ldl -#ifndef SANITIZER_GO -bool SetEnv(const char *name, const char *value) { - void *f = dlsym(RTLD_NEXT, "setenv"); - if (f == 0) - return false; - typedef int(*setenv_ft)(const char *name, const char *value, int overwrite); - setenv_ft setenv_f; - CHECK_EQ(sizeof(setenv_f), sizeof(f)); - internal_memcpy(&setenv_f, &f, sizeof(f)); - return setenv_f(name, value, 1) == 0; -} -#endif - #ifdef __GLIBC__ extern "C" { |