aboutsummaryrefslogtreecommitdiff
path: root/ELF
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-10-02 21:00:41 +0000
committerRui Ueyama <ruiu@google.com>2017-10-02 21:00:41 +0000
commitff693d0fa8751e2d0f0ed51cc76ed1c45cbd6153 (patch)
treed254e942dbfb2231ead5d0d9f00074c4985f4a98 /ELF
parent86b78de627e9744bcecbb8e4eb22df76c8137a4c (diff)
Move new lld's code to Common subdirectory.
New lld's files are spread under lib subdirectory, and it isn't easy to find which files are actually maintained. This patch moves maintained files to Common subdirectory. Differential Revision: https://reviews.llvm.org/D37645 git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@314719 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'ELF')
-rw-r--r--ELF/CMakeLists.txt1
-rw-r--r--ELF/Driver.cpp4
-rw-r--r--ELF/Driver.h4
-rw-r--r--ELF/DriverUtils.cpp4
-rw-r--r--ELF/EhFrame.h2
-rw-r--r--ELF/Error.h2
-rw-r--r--ELF/Filesystem.h2
-rw-r--r--ELF/InputFiles.h4
-rw-r--r--ELF/InputSection.h2
-rw-r--r--ELF/LTO.cpp4
-rw-r--r--ELF/LTO.h2
-rw-r--r--ELF/LinkerScript.h2
-rw-r--r--ELF/OutputSections.h2
-rw-r--r--ELF/Relocations.h2
-rw-r--r--ELF/ScriptLexer.h2
-rw-r--r--ELF/ScriptParser.h2
-rw-r--r--ELF/Strings.h2
-rw-r--r--ELF/Symbols.h2
-rw-r--r--ELF/SyntheticSections.cpp2
19 files changed, 24 insertions, 23 deletions
diff --git a/ELF/CMakeLists.txt b/ELF/CMakeLists.txt
index 77243bd49..04fe9f8fa 100644
--- a/ELF/CMakeLists.txt
+++ b/ELF/CMakeLists.txt
@@ -65,6 +65,7 @@ add_lld_library(lldELF
TransformUtils
LINK_LIBS
+ lldCommon
lldConfig
lldCore
${LLVM_PTHREAD_LIB}
diff --git a/ELF/Driver.cpp b/ELF/Driver.cpp
index b53d88ba3..13cdf3332 100644
--- a/ELF/Driver.cpp
+++ b/ELF/Driver.cpp
@@ -40,8 +40,8 @@
#include "Target.h"
#include "Threads.h"
#include "Writer.h"
-#include "lld/Config/Version.h"
-#include "lld/Driver/Driver.h"
+#include "lld/Common/Driver.h"
+#include "lld/Common/Version.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/CommandLine.h"
diff --git a/ELF/Driver.h b/ELF/Driver.h
index 076dda773..617dcb200 100644
--- a/ELF/Driver.h
+++ b/ELF/Driver.h
@@ -11,8 +11,8 @@
#define LLD_ELF_DRIVER_H
#include "SymbolTable.h"
-#include "lld/Core/LLVM.h"
-#include "lld/Core/Reproduce.h"
+#include "lld/Common/LLVM.h"
+#include "lld/Common/Reproduce.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSet.h"
diff --git a/ELF/DriverUtils.cpp b/ELF/DriverUtils.cpp
index cfadd2959..0af56c301 100644
--- a/ELF/DriverUtils.cpp
+++ b/ELF/DriverUtils.cpp
@@ -16,8 +16,8 @@
#include "Driver.h"
#include "Error.h"
#include "Memory.h"
-#include "lld/Config/Version.h"
-#include "lld/Core/Reproduce.h"
+#include "lld/Common/Reproduce.h"
+#include "lld/Common/Version.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/Triple.h"
diff --git a/ELF/EhFrame.h b/ELF/EhFrame.h
index 07d1aaa3c..25ed2b919 100644
--- a/ELF/EhFrame.h
+++ b/ELF/EhFrame.h
@@ -10,7 +10,7 @@
#ifndef LLD_ELF_EHFRAME_H
#define LLD_ELF_EHFRAME_H
-#include "lld/Core/LLVM.h"
+#include "lld/Common/LLVM.h"
namespace lld {
namespace elf {
diff --git a/ELF/Error.h b/ELF/Error.h
index 89bc2111b..c6e4f0e62 100644
--- a/ELF/Error.h
+++ b/ELF/Error.h
@@ -28,7 +28,7 @@
#ifndef LLD_ELF_ERROR_H
#define LLD_ELF_ERROR_H
-#include "lld/Core/LLVM.h"
+#include "lld/Common/LLVM.h"
#include "llvm/Support/Error.h"
diff --git a/ELF/Filesystem.h b/ELF/Filesystem.h
index dbeadac5a..cf170b716 100644
--- a/ELF/Filesystem.h
+++ b/ELF/Filesystem.h
@@ -10,7 +10,7 @@
#ifndef LLD_ELF_FILESYSTEM_H
#define LLD_ELF_FILESYSTEM_H
-#include "lld/Core/LLVM.h"
+#include "lld/Common/LLVM.h"
namespace lld {
namespace elf {
diff --git a/ELF/InputFiles.h b/ELF/InputFiles.h
index 5a1f6d6a6..39856de9c 100644
--- a/ELF/InputFiles.h
+++ b/ELF/InputFiles.h
@@ -15,8 +15,8 @@
#include "InputSection.h"
#include "Symbols.h"
-#include "lld/Core/LLVM.h"
-#include "lld/Core/Reproduce.h"
+#include "lld/Common/LLVM.h"
+#include "lld/Common/Reproduce.h"
#include "llvm/ADT/CachedHashString.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/STLExtras.h"
diff --git a/ELF/InputSection.h b/ELF/InputSection.h
index de78b8f3c..3ed4313f0 100644
--- a/ELF/InputSection.h
+++ b/ELF/InputSection.h
@@ -13,7 +13,7 @@
#include "Config.h"
#include "Relocations.h"
#include "Thunks.h"
-#include "lld/Core/LLVM.h"
+#include "lld/Common/LLVM.h"
#include "llvm/ADT/CachedHashString.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/TinyPtrVector.h"
diff --git a/ELF/LTO.cpp b/ELF/LTO.cpp
index 24a8ff65b..925c3ec1e 100644
--- a/ELF/LTO.cpp
+++ b/ELF/LTO.cpp
@@ -10,11 +10,11 @@
#include "LTO.h"
#include "Config.h"
#include "Error.h"
-#include "LinkerScript.h"
#include "InputFiles.h"
+#include "LinkerScript.h"
#include "SymbolTable.h"
#include "Symbols.h"
-#include "lld/Core/TargetOptionsCommandFlags.h"
+#include "lld/Common/TargetOptionsCommandFlags.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringRef.h"
diff --git a/ELF/LTO.h b/ELF/LTO.h
index 79dd23290..223af507a 100644
--- a/ELF/LTO.h
+++ b/ELF/LTO.h
@@ -21,7 +21,7 @@
#ifndef LLD_ELF_LTO_H
#define LLD_ELF_LTO_H
-#include "lld/Core/LLVM.h"
+#include "lld/Common/LLVM.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/SmallString.h"
#include <memory>
diff --git a/ELF/LinkerScript.h b/ELF/LinkerScript.h
index 921bff052..d158f62aa 100644
--- a/ELF/LinkerScript.h
+++ b/ELF/LinkerScript.h
@@ -13,7 +13,7 @@
#include "Config.h"
#include "Strings.h"
#include "Writer.h"
-#include "lld/Core/LLVM.h"
+#include "lld/Common/LLVM.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/DenseSet.h"
diff --git a/ELF/OutputSections.h b/ELF/OutputSections.h
index bf970db7c..948ab8de3 100644
--- a/ELF/OutputSections.h
+++ b/ELF/OutputSections.h
@@ -15,7 +15,7 @@
#include "LinkerScript.h"
#include "Relocations.h"
-#include "lld/Core/LLVM.h"
+#include "lld/Common/LLVM.h"
#include "llvm/MC/StringTableBuilder.h"
#include "llvm/Object/ELF.h"
diff --git a/ELF/Relocations.h b/ELF/Relocations.h
index 9035e0333..7984424d7 100644
--- a/ELF/Relocations.h
+++ b/ELF/Relocations.h
@@ -10,7 +10,7 @@
#ifndef LLD_ELF_RELOCATIONS_H
#define LLD_ELF_RELOCATIONS_H
-#include "lld/Core/LLVM.h"
+#include "lld/Common/LLVM.h"
#include "llvm/ADT/DenseMap.h"
#include <map>
#include <vector>
diff --git a/ELF/ScriptLexer.h b/ELF/ScriptLexer.h
index da0a5e962..e7c8b28e4 100644
--- a/ELF/ScriptLexer.h
+++ b/ELF/ScriptLexer.h
@@ -10,7 +10,7 @@
#ifndef LLD_ELF_SCRIPT_LEXER_H
#define LLD_ELF_SCRIPT_LEXER_H
-#include "lld/Core/LLVM.h"
+#include "lld/Common/LLVM.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/MemoryBuffer.h"
#include <utility>
diff --git a/ELF/ScriptParser.h b/ELF/ScriptParser.h
index 02f3a2bd9..f820044cc 100644
--- a/ELF/ScriptParser.h
+++ b/ELF/ScriptParser.h
@@ -10,7 +10,7 @@
#ifndef LLD_ELF_SCRIPT_PARSER_H
#define LLD_ELF_SCRIPT_PARSER_H
-#include "lld/Core/LLVM.h"
+#include "lld/Common/LLVM.h"
#include "llvm/Support/MemoryBuffer.h"
namespace lld {
diff --git a/ELF/Strings.h b/ELF/Strings.h
index aba1267b6..aef9a92c0 100644
--- a/ELF/Strings.h
+++ b/ELF/Strings.h
@@ -10,7 +10,7 @@
#ifndef LLD_ELF_STRINGS_H
#define LLD_ELF_STRINGS_H
-#include "lld/Core/LLVM.h"
+#include "lld/Common/LLVM.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/Optional.h"
diff --git a/ELF/Symbols.h b/ELF/Symbols.h
index 6c95968c8..6992679e0 100644
--- a/ELF/Symbols.h
+++ b/ELF/Symbols.h
@@ -18,7 +18,7 @@
#include "InputSection.h"
#include "Strings.h"
-#include "lld/Core/LLVM.h"
+#include "lld/Common/LLVM.h"
#include "llvm/Object/Archive.h"
#include "llvm/Object/ELF.h"
diff --git a/ELF/SyntheticSections.cpp b/ELF/SyntheticSections.cpp
index 591039549..648fe3470 100644
--- a/ELF/SyntheticSections.cpp
+++ b/ELF/SyntheticSections.cpp
@@ -26,7 +26,7 @@
#include "Target.h"
#include "Threads.h"
#include "Writer.h"
-#include "lld/Config/Version.h"
+#include "lld/Common/Version.h"
#include "llvm/BinaryFormat/Dwarf.h"
#include "llvm/DebugInfo/DWARF/DWARFDebugPubTable.h"
#include "llvm/Object/Decompressor.h"