From 551ccae044b0ff658fe629dd67edd5ffe75d10e8 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Wed, 1 Sep 2004 22:55:40 +0000 Subject: Changes For Bug 352 Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16137 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/Config/sys/mman.h | 32 -------------------------------- include/Config/sys/resource.h | 34 ---------------------------------- include/Config/sys/stat.h | 29 ----------------------------- include/Config/sys/time.h | 24 ------------------------ include/Config/sys/types.h | 25 ------------------------- include/Config/sys/wait.h | 24 ------------------------ 6 files changed, 168 deletions(-) delete mode 100644 include/Config/sys/mman.h delete mode 100644 include/Config/sys/resource.h delete mode 100644 include/Config/sys/stat.h delete mode 100644 include/Config/sys/time.h delete mode 100644 include/Config/sys/types.h delete mode 100644 include/Config/sys/wait.h (limited to 'include/Config/sys') diff --git a/include/Config/sys/mman.h b/include/Config/sys/mman.h deleted file mode 100644 index 7f51e7fbfb..0000000000 --- a/include/Config/sys/mman.h +++ /dev/null @@ -1,32 +0,0 @@ -/*===-- Config/sys/mman.h - Autoconf sys/mman.h wrapper -----------*- C -*-===// - * - * The LLVM Compiler Infrastructure - * - * This file was developed by the LLVM research group and is distributed under - * the University of Illinois Open Source License. See LICENSE.TXT for details. - * - *===----------------------------------------------------------------------===// - * - * Description: - * This header file includes the headers needed for the mmap() system/ - * function call. It also defines some macros so that all of our calls - * to mmap() can act (more or less) the same, regardless of platform. - * - *===----------------------------------------------------------------------===// - */ - -#ifndef _CONFIG_MMAN_H -#define _CONFIG_MMAN_H - -#include "Config/config.h" - -#if defined(HAVE_SYS_MMAN_H) && !defined(_MSC_VER) -#include -#endif - -#ifndef HAVE_MMAP_ANONYMOUS -#define MAP_ANONYMOUS MAP_ANON -#endif - -#endif - diff --git a/include/Config/sys/resource.h b/include/Config/sys/resource.h deleted file mode 100644 index 1f4cc694b2..0000000000 --- a/include/Config/sys/resource.h +++ /dev/null @@ -1,34 +0,0 @@ -/*===-- Config/sys/resource.h -----------------------------------*- C++ -*-===// - * - * The LLVM Compiler Infrastructure - * - * This file was developed by the LLVM research group and is distributed under - * the University of Illinois Open Source License. See LICENSE.TXT for details. - * - *===----------------------------------------------------------------------===// - * - * This header file is the autoconf replacement for sys/resource.h (if it - * lives on the system). - * - *===----------------------------------------------------------------------===// - */ - -#ifndef _CONFIG_SYS_RESOURCE_H -#define _CONFIG_SYS_RESOURCE_H - -#include "Config/config.h" - -#if defined(HAVE_SYS_RESOURCE_H) && !defined(_MSC_VER) - -/* - * In LLVM, we use sys/resource.h to use getrusage() and maybe some other - * stuff. Some man pages say that you also need sys/time.h and unistd.h. - * So, to be paranoid, we will try to include all three if possible. - */ -#include "Config/sys/time.h" -#include -#include "Config/unistd.h" - -#endif - -#endif diff --git a/include/Config/sys/stat.h b/include/Config/sys/stat.h deleted file mode 100644 index 9669bcf927..0000000000 --- a/include/Config/sys/stat.h +++ /dev/null @@ -1,29 +0,0 @@ -/*===-- Config/sys/stat.h -----------------------------------*- ----C++ -*-===// - * - * The LLVM Compiler Infrastructure - * - * This file was developed by the LLVM research group and is distributed under - * the University of Illinois Open Source License. See LICENSE.TXT for details. - * - *===----------------------------------------------------------------------===// - * This header file includes the headers needed for the stat() system - * call. - * - *===----------------------------------------------------------------------===// - */ - -#ifndef _CONFIG_SYS_STAT_H -#define _CONFIG_SYS_STAT_H - -#include "Config/config.h" - -#ifdef HAVE_SYS_STAT_H -#include -#endif - -#if defined(_MSC_VER) -#define S_ISREG(X) ((X) & _S_IFREG) -#endif - -#endif - diff --git a/include/Config/sys/time.h b/include/Config/sys/time.h deleted file mode 100644 index 3e0ea1e810..0000000000 --- a/include/Config/sys/time.h +++ /dev/null @@ -1,24 +0,0 @@ -/*===-- Config/sys/time.h ---------------------------------------*- C++ -*-===// - * - * The LLVM Compiler Infrastructure - * - * This file was developed by the LLVM research group and is distributed under - * the University of Illinois Open Source License. See LICENSE.TXT for details. - * - *===----------------------------------------------------------------------===// - * This header file is the autoconf replacement for sys/time.h (if it - * lives on the system). - * - *===----------------------------------------------------------------------===// - */ - -#ifndef _CONFIG_SYS_TIME_H -#define _CONFIG_SYS_TIME_H - -#include "Config/config.h" - -#if defined(HAVE_SYS_TIME_H) && !defined(_MSC_VER) -#include -#endif - -#endif diff --git a/include/Config/sys/types.h b/include/Config/sys/types.h deleted file mode 100644 index f0a7abec35..0000000000 --- a/include/Config/sys/types.h +++ /dev/null @@ -1,25 +0,0 @@ -/*===-- Config/sys/types.h --------------------------------------*- C++ -*-===// - * - * The LLVM Compiler Infrastructure - * - * This file was developed by the LLVM research group and is distributed under - * the University of Illinois Open Source License. See LICENSE.TXT for details. - * - *===----------------------------------------------------------------------===// - * This header file is the autoconf substitute for sys/types.h. It - * includes it for us if it exists on this system. - * - *===----------------------------------------------------------------------===// - */ - -#ifndef _CONFIG_SYS_TYPES_H -#define _CONFIG_SYS_TYPES_H - -#include "Config/config.h" - -#ifdef HAVE_SYS_TYPES_H -#include -#endif - -#endif - diff --git a/include/Config/sys/wait.h b/include/Config/sys/wait.h deleted file mode 100644 index b3db60e435..0000000000 --- a/include/Config/sys/wait.h +++ /dev/null @@ -1,24 +0,0 @@ -/*===-- Config/sys/wait.h ---------------------------------------*- C++ -*-===// - * - * The LLVM Compiler Infrastructure - * - * This file was developed by the LLVM research group and is distributed under - * the University of Illinois Open Source License. See LICENSE.TXT for details. - * - *===----------------------------------------------------------------------===// - * This header file includes the headers needed for the wait() system - * call. - *===----------------------------------------------------------------------===// - */ - -#ifndef _CONFIG_SYS_WAIT_H -#define _CONFIG_SYS_WAIT_H - -#include "Config/config.h" - -#ifdef HAVE_SYS_WAIT_H -#include -#endif - -#endif - -- cgit v1.2.3-70-g09d2