Path: blob/master/libs/c++abi/src/demangle/Compiler.h
12346 views
//===--- Compiler.h ---------------------------------------------*- C++ -*-===//1//2// The LLVM Compiler Infrastructure3//4// This file is distributed under the University of Illinois Open Source5// License. See LICENSE.TXT for details.6//7// This file is contains a subset of macros copied from8// llvm/lib/Demangle/Compiler.h.9//===----------------------------------------------------------------------===//1011#ifndef LIBCXX_DEMANGLE_COMPILER_H12#define LIBCXX_DEMANGLE_COMPILER_H1314#ifdef _MSC_VER15// snprintf is implemented in VS 201516#if _MSC_VER < 190017#define snprintf _snprintf_s18#endif19#endif2021#ifndef __has_attribute22#define __has_attribute(x) 023#endif2425#ifndef NDEBUG26#if __has_attribute(noinline) && __has_attribute(used)27#define DUMP_METHOD __attribute__((noinline, used))28#else29#define DUMP_METHOD30#endif31#endif3233#endif343536