summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2016-12-14 20:53:57 +0000
committerMichal Gorny <mgorny@gentoo.org>2016-12-14 20:53:57 +0000
commit906534fe4e702cff11d2d3478c868fe2eb2ec088 (patch)
treee414b5aac169cd1c01f9123ce06903087e9b6701
parentcbed30c5012b9b52a495dadc94f14ea54f1b5b10 (diff)
downloadbcm5719-llvm-906534fe4e702cff11d2d3478c868fe2eb2ec088.tar.gz
bcm5719-llvm-906534fe4e702cff11d2d3478c868fe2eb2ec088.zip
Remove unnecessary llvm/Config/config.h includes
Remove the includes of <llvm/Config/config.h> 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
-rw-r--r--lld/ELF/Strings.cpp1
-rw-r--r--lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp1
2 files changed, 0 insertions, 2 deletions
diff --git a/lld/ELF/Strings.cpp b/lld/ELF/Strings.cpp
index 7e5b5ab75f8..349325cb71d 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 <algorithm>
#include <cstring>
diff --git a/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp b/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
index d6ab0b40c1c..db4a96823e7 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"
OpenPOWER on IntegriCloud