From 906534fe4e702cff11d2d3478c868fe2eb2ec088 Mon Sep 17 00:00:00 2001 From: Michal Gorny Date: Wed, 14 Dec 2016 20:53:57 +0000 Subject: [PATCH] Remove unnecessary llvm/Config/config.h includes Remove the includes of private LLVM header. The relevant files seem not to use any definitions from that file, and it is not available when building against installed LLVM. The use in lib/ReaderWriter/MachO/MachOLinkingContext.cpp originates from rL218718, and the use in ELF/Strings.cpp from rL274804 (where it was moved from Symbols.cpp). In both cases, they were added as a part of demangling support, and they provided HAVE_CXXABI_H. Since we are now using the LLVM demangler library instead, the code was removed and the includes and no longer necessary. Differential Revision: https://reviews.llvm.org/D27757 llvm-svn: 289707 --- lld/ELF/Strings.cpp | 1 - lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/lld/ELF/Strings.cpp b/lld/ELF/Strings.cpp index 7e5b5ab75f82..349325cb71dd 100644 --- a/lld/ELF/Strings.cpp +++ b/lld/ELF/Strings.cpp @@ -13,7 +13,6 @@ #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/StringRef.h" #include "llvm/ADT/Twine.h" -#include "llvm/Config/config.h" #include "llvm/Demangle/Demangle.h" #include #include diff --git a/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp b/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp index d6ab0b40c1cf..db4a96823e74 100644 --- a/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp +++ b/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp @@ -22,7 +22,6 @@ #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/StringExtras.h" #include "llvm/ADT/Triple.h" -#include "llvm/Config/config.h" #include "llvm/Demangle/Demangle.h" #include "llvm/Support/Debug.h" #include "llvm/Support/Errc.h"