diff --git a/llvm/include/llvm/Config/config.h.cmake b/llvm/include/llvm/Config/config.h.cmake index 6a5ac889e6f0..b08796aad7ad 100644 --- a/llvm/include/llvm/Config/config.h.cmake +++ b/llvm/include/llvm/Config/config.h.cmake @@ -1,5 +1,3 @@ -/* include/llvm/Config/config.h.cmake corresponding to config.h.in. */ - #ifndef CONFIG_H #define CONFIG_H diff --git a/llvm/include/llvm/Support/AIXDataTypesFix.h b/llvm/include/llvm/Support/AIXDataTypesFix.h deleted file mode 100644 index a9a9147de294..000000000000 --- a/llvm/include/llvm/Support/AIXDataTypesFix.h +++ /dev/null @@ -1,25 +0,0 @@ -//===-- llvm/Support/AIXDataTypesFix.h - Fix datatype defs ------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file overrides default system-defined types and limits which cannot be -// done in DataTypes.h.in because it is processed by autoheader first, which -// comments out any #undef statement -// -//===----------------------------------------------------------------------===// - -// No include guards desired! - -#ifndef SUPPORT_DATATYPES_H -#error "AIXDataTypesFix.h must only be included via DataTypes.h!" -#endif - -// GCC is strict about defining large constants: they must have LL modifier. -// These will be defined properly at the end of DataTypes.h -#undef INT64_MAX -#undef INT64_MIN diff --git a/llvm/include/llvm/Support/DataTypes.h.cmake b/llvm/include/llvm/Support/DataTypes.h.cmake index c90bf51afaee..cccd0bc5fef1 100644 --- a/llvm/include/llvm/Support/DataTypes.h.cmake +++ b/llvm/include/llvm/Support/DataTypes.h.cmake @@ -21,8 +21,6 @@ /* Please leave this file C-compatible. */ -/* Please keep this file in sync with DataTypes.h.in */ - #ifndef SUPPORT_DATATYPES_H #define SUPPORT_DATATYPES_H @@ -66,7 +64,9 @@ #include #ifdef _AIX -#include "llvm/Support/AIXDataTypesFix.h" +// GCC is strict about defining large constants: they must have LL modifier. +#undef INT64_MAX +#undef INT64_MIN #endif /* Handle incorrect definition of uint64_t as u_int64_t */ diff --git a/llvm/include/llvm/module.modulemap b/llvm/include/llvm/module.modulemap index d74ada6faa61..efc1890191c6 100644 --- a/llvm/include/llvm/module.modulemap +++ b/llvm/include/llvm/module.modulemap @@ -184,9 +184,6 @@ module LLVM_Utils { // Exclude this; it's only included on Solaris. exclude header "Support/Solaris.h" - // Exclude this; it's only included on AIX and fundamentally non-modular. - exclude header "Support/AIXDataTypesFix.h" - // Exclude this; it's fundamentally non-modular. exclude header "Support/PluginLoader.h"