This repository has been archived by the owner on May 21, 2019. It is now read-only.
forked from vadimcn/compiler-rt
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ASan] Move GetMacosVersion() to sanitizer_common.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200700 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
1 parent
220d6ba
commit a3a0560
Showing
5 changed files
with
76 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
//===-- sanitizer_mac.h -----------------------------------------*- C++ -*-===// | ||
// | ||
// The LLVM Compiler Infrastructure | ||
// | ||
// This file is distributed under the University of Illinois Open Source | ||
// License. See LICENSE.TXT for details. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// This file is shared between various sanitizers' runtime libraries and | ||
// provides definitions for OSX-specific functions. | ||
//===----------------------------------------------------------------------===// | ||
#ifndef SANITIZER_MAC_H | ||
#define SANITIZER_MAC_H | ||
|
||
namespace __sanitizer { | ||
|
||
enum MacosVersion { | ||
MACOS_VERSION_UNINITIALIZED = 0, | ||
MACOS_VERSION_UNKNOWN, | ||
MACOS_VERSION_LEOPARD, | ||
MACOS_VERSION_SNOW_LEOPARD, | ||
MACOS_VERSION_LION, | ||
MACOS_VERSION_MOUNTAIN_LION, | ||
MACOS_VERSION_MAVERICKS | ||
}; | ||
|
||
MacosVersion GetMacosVersion(); | ||
|
||
} // namespace __sanitizer | ||
|
||
#endif // SANITIZER_MAC_H |