[compiler-rt] r281658 - [compiler-rt] Remove the system includes from __sanitizer namespace
Anna Zaks via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 15 14:02:22 PDT 2016
Author: zaks
Date: Thu Sep 15 16:02:22 2016
New Revision: 281658
URL: http://llvm.org/viewvc/llvm-project?rev=281658&view=rev
Log:
[compiler-rt] Remove the system includes from __sanitizer namespace
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_mac.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_mac.cc?rev=281658&r1=281657&r2=281658&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_mac.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_mac.cc Thu Sep 15 16:02:22 2016
@@ -19,8 +19,6 @@
#include "sanitizer_mac.h"
#include "sanitizer_symbolizer_mac.h"
-namespace __sanitizer {
-
#include <dlfcn.h>
#include <errno.h>
#include <stdlib.h>
@@ -28,6 +26,8 @@ namespace __sanitizer {
#include <unistd.h>
#include <util.h>
+namespace __sanitizer {
+
bool DlAddrSymbolizer::SymbolizePC(uptr addr, SymbolizedStack *stack) {
Dl_info info;
int result = dladdr((const void *)addr, &info);
More information about the llvm-commits
mailing list