Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | |||||
#include <sstream> | #include <sstream> | ||||
#include <string> | #include <string> | ||||
#include <tuple> | #include <tuple> | ||||
using namespace llvm; | using namespace llvm; | ||||
#define DEBUG_TYPE "asan" | #define DEBUG_TYPE "asan" | ||||
#if defined(OVERRIDE_SHADOW_SCALE) | |||||
static const uint64_t kDefaultShadowScale = OVERRIDE_SHADOW_SCALE; | |||||
#else | |||||
static const uint64_t kDefaultShadowScale = 3; | static const uint64_t kDefaultShadowScale = 3; | ||||
#endif | |||||
static const uint64_t kDefaultShadowOffset32 = 1ULL << 29; | static const uint64_t kDefaultShadowOffset32 = 1ULL << 29; | ||||
static const uint64_t kDefaultShadowOffset64 = 1ULL << 44; | static const uint64_t kDefaultShadowOffset64 = 1ULL << 44; | ||||
static const uint64_t kDynamicShadowSentinel = | static const uint64_t kDynamicShadowSentinel = | ||||
std::numeric_limits<uint64_t>::max(); | std::numeric_limits<uint64_t>::max(); | ||||
static const uint64_t kIOSShadowOffset32 = 1ULL << 30; | static const uint64_t kIOSShadowOffset32 = 1ULL << 30; | ||||
static const uint64_t kIOSSimShadowOffset32 = 1ULL << 30; | static const uint64_t kIOSSimShadowOffset32 = 1ULL << 30; | ||||
static const uint64_t kIOSSimShadowOffset64 = kDefaultShadowOffset64; | static const uint64_t kIOSSimShadowOffset64 = kDefaultShadowOffset64; | ||||
static const uint64_t kSmallX86_64ShadowOffset = 0x7FFF8000; // < 2G. | static const uint64_t kSmallX86_64ShadowOffset = 0x7FFF8000; // < 2G. | ||||
▲ Show 20 Lines • Show All 2,998 Lines • Show Last 20 Lines |