summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-05-13 22:06:46 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-05-13 22:06:46 +0000
commitc6f07c423d0adf0b96c8690bb893ebad534b753b (patch)
tree076d2d68024b78ad9445b610c14939603ce66d9e
parent78b0ce03e9ee069ffec981f46c69436363a3b473 (diff)
downloadbcm5719-llvm-c6f07c423d0adf0b96c8690bb893ebad534b753b.tar.gz
bcm5719-llvm-c6f07c423d0adf0b96c8690bb893ebad534b753b.zip
Move lib/LibDriver -> lib/ToolDrivers/llvm-lib. NFCI.
This reorganisation prevents us from cluttering up the top-level lib directory with more driver libraries such as llvm-dlltool (see D29892). llvm-svn: 302995
-rw-r--r--lld/COFF/Driver.cpp2
-rw-r--r--llvm/include/llvm/ToolDrivers/llvm-lib/LibDriver.h (renamed from llvm/include/llvm/LibDriver/LibDriver.h)6
-rw-r--r--llvm/lib/CMakeLists.txt2
-rw-r--r--llvm/lib/LLVMBuild.txt2
-rw-r--r--llvm/lib/ToolDrivers/llvm-lib/CMakeLists.txt (renamed from llvm/lib/LibDriver/CMakeLists.txt)0
-rw-r--r--llvm/lib/ToolDrivers/llvm-lib/LLVMBuild.txt (renamed from llvm/lib/LibDriver/LLVMBuild.txt)0
-rw-r--r--llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp (renamed from llvm/lib/LibDriver/LibDriver.cpp)2
-rw-r--r--llvm/lib/ToolDrivers/llvm-lib/Options.td (renamed from llvm/lib/LibDriver/Options.td)0
-rw-r--r--llvm/tools/llvm-ar/llvm-ar.cpp2
9 files changed, 8 insertions, 8 deletions
diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp
index 5a15b5b1150..4c0ea44b875 100644
--- a/lld/COFF/Driver.cpp
+++ b/lld/COFF/Driver.cpp
@@ -18,7 +18,6 @@
#include "lld/Driver/Driver.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/StringSwitch.h"
-#include "llvm/LibDriver/LibDriver.h"
#include "llvm/Object/ArchiveWriter.h"
#include "llvm/Option/Arg.h"
#include "llvm/Option/ArgList.h"
@@ -29,6 +28,7 @@
#include "llvm/Support/TarWriter.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/Support/raw_ostream.h"
+#include "llvm/ToolDrivers/llvm-lib/LibDriver.h"
#include <algorithm>
#include <memory>
diff --git a/llvm/include/llvm/LibDriver/LibDriver.h b/llvm/include/llvm/ToolDrivers/llvm-lib/LibDriver.h
index 95feb60be40..a4806ac4ad6 100644
--- a/llvm/include/llvm/LibDriver/LibDriver.h
+++ b/llvm/include/llvm/ToolDrivers/llvm-lib/LibDriver.h
@@ -1,4 +1,4 @@
-//===- llvm/LibDriver/LibDriver.h - lib.exe-compatible driver ---*- C++ -*-===//
+//===- llvm-lib/LibDriver.h - lib.exe-compatible driver ---------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -12,8 +12,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_LIBDRIVER_LIBDRIVER_H
-#define LLVM_LIBDRIVER_LIBDRIVER_H
+#ifndef LLVM_TOOLDRIVERS_LLVM_LIB_LIBDRIVER_H
+#define LLVM_TOOLDRIVERS_LLVM_LIB_LIBDRIVER_H
namespace llvm {
template <typename T> class ArrayRef;
diff --git a/llvm/lib/CMakeLists.txt b/llvm/lib/CMakeLists.txt
index 76549540ce0..73fc2b35fe4 100644
--- a/llvm/lib/CMakeLists.txt
+++ b/llvm/lib/CMakeLists.txt
@@ -21,5 +21,5 @@ add_subdirectory(LineEditor)
add_subdirectory(ProfileData)
add_subdirectory(Fuzzer)
add_subdirectory(Passes)
-add_subdirectory(LibDriver)
+add_subdirectory(ToolDrivers)
add_subdirectory(XRay)
diff --git a/llvm/lib/LLVMBuild.txt b/llvm/lib/LLVMBuild.txt
index 684b378c93e..89ddd0fc1af 100644
--- a/llvm/lib/LLVMBuild.txt
+++ b/llvm/lib/LLVMBuild.txt
@@ -24,7 +24,6 @@ subdirectories =
DebugInfo
Demangle
ExecutionEngine
- LibDriver
LineEditor
Linker
IR
@@ -39,6 +38,7 @@ subdirectories =
Support
TableGen
Target
+ ToolDrivers
Transforms
[component_0]
diff --git a/llvm/lib/LibDriver/CMakeLists.txt b/llvm/lib/ToolDrivers/llvm-lib/CMakeLists.txt
index ab53a684344..ab53a684344 100644
--- a/llvm/lib/LibDriver/CMakeLists.txt
+++ b/llvm/lib/ToolDrivers/llvm-lib/CMakeLists.txt
diff --git a/llvm/lib/LibDriver/LLVMBuild.txt b/llvm/lib/ToolDrivers/llvm-lib/LLVMBuild.txt
index 799dc997c0b..799dc997c0b 100644
--- a/llvm/lib/LibDriver/LLVMBuild.txt
+++ b/llvm/lib/ToolDrivers/llvm-lib/LLVMBuild.txt
diff --git a/llvm/lib/LibDriver/LibDriver.cpp b/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
index c50629d7150..3bae3826d62 100644
--- a/llvm/lib/LibDriver/LibDriver.cpp
+++ b/llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
@@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//
-#include "llvm/LibDriver/LibDriver.h"
+#include "llvm/ToolDrivers/llvm-lib/LibDriver.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Object/ArchiveWriter.h"
#include "llvm/Option/Arg.h"
diff --git a/llvm/lib/LibDriver/Options.td b/llvm/lib/ToolDrivers/llvm-lib/Options.td
index 5a56ef7468d..5a56ef7468d 100644
--- a/llvm/lib/LibDriver/Options.td
+++ b/llvm/lib/ToolDrivers/llvm-lib/Options.td
diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp
index 1519464521d..3de260410bd 100644
--- a/llvm/tools/llvm-ar/llvm-ar.cpp
+++ b/llvm/tools/llvm-ar/llvm-ar.cpp
@@ -16,7 +16,7 @@
#include "llvm/ADT/Triple.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
-#include "llvm/LibDriver/LibDriver.h"
+#include "llvm/ToolDrivers/llvm-lib/LibDriver.h"
#include "llvm/Object/Archive.h"
#include "llvm/Object/ArchiveWriter.h"
#include "llvm/Object/MachO.h"
OpenPOWER on IntegriCloud