From 0646903fc1f75f6e605754621119473ee083f4a4 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 19 Jan 2019 10:05:08 +0000 Subject: Vendor import of compiler-rt trunk r351319 (just before the release_80 branch point): https://llvm.org/svn/llvm-project/compiler-rt/trunk@351319 --- lib/sanitizer_common/sanitizer_type_traits.cc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lib/sanitizer_common/sanitizer_type_traits.cc (limited to 'lib/sanitizer_common/sanitizer_type_traits.cc') diff --git a/lib/sanitizer_common/sanitizer_type_traits.cc b/lib/sanitizer_common/sanitizer_type_traits.cc new file mode 100644 index 000000000000..27fec6e1f494 --- /dev/null +++ b/lib/sanitizer_common/sanitizer_type_traits.cc @@ -0,0 +1,21 @@ +//===-- sanitizer_type_traits.cc --------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Implements a subset of C++ type traits. This is so we can avoid depending +// on system C++ headers. +// +//===----------------------------------------------------------------------===// +#include "sanitizer_type_traits.h" + +namespace __sanitizer { + +const bool true_type::value; +const bool false_type::value; + +} // namespace __sanitizer -- cgit v1.2.3