From a844915ce02f3deec0fd806ba4ad7deaddf98973 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Sat, 13 May 2017 22:06:46 +0000 Subject: [PATCH] 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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302995 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../llvm/{LibDriver => ToolDrivers/llvm-lib}/LibDriver.h | 6 +++--- lib/CMakeLists.txt | 2 +- lib/LLVMBuild.txt | 2 +- lib/{LibDriver => ToolDrivers/llvm-lib}/CMakeLists.txt | 0 lib/{LibDriver => ToolDrivers/llvm-lib}/LLVMBuild.txt | 0 lib/{LibDriver => ToolDrivers/llvm-lib}/LibDriver.cpp | 2 +- lib/{LibDriver => ToolDrivers/llvm-lib}/Options.td | 0 tools/llvm-ar/llvm-ar.cpp | 2 +- 8 files changed, 7 insertions(+), 7 deletions(-) rename include/llvm/{LibDriver => ToolDrivers/llvm-lib}/LibDriver.h (79%) rename lib/{LibDriver => ToolDrivers/llvm-lib}/CMakeLists.txt (100%) rename lib/{LibDriver => ToolDrivers/llvm-lib}/LLVMBuild.txt (100%) rename lib/{LibDriver => ToolDrivers/llvm-lib}/LibDriver.cpp (99%) rename lib/{LibDriver => ToolDrivers/llvm-lib}/Options.td (100%) diff --git a/include/llvm/LibDriver/LibDriver.h b/include/llvm/ToolDrivers/llvm-lib/LibDriver.h similarity index 79% rename from include/llvm/LibDriver/LibDriver.h rename to include/llvm/ToolDrivers/llvm-lib/LibDriver.h index 95feb60be40..a4806ac4ad6 100644 --- a/include/llvm/LibDriver/LibDriver.h +++ b/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 class ArrayRef; diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 76549540ce0..73fc2b35fe4 100644 --- a/lib/CMakeLists.txt +++ b/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/lib/LLVMBuild.txt b/lib/LLVMBuild.txt index 684b378c93e..89ddd0fc1af 100644 --- a/lib/LLVMBuild.txt +++ b/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/lib/LibDriver/CMakeLists.txt b/lib/ToolDrivers/llvm-lib/CMakeLists.txt similarity index 100% rename from lib/LibDriver/CMakeLists.txt rename to lib/ToolDrivers/llvm-lib/CMakeLists.txt diff --git a/lib/LibDriver/LLVMBuild.txt b/lib/ToolDrivers/llvm-lib/LLVMBuild.txt similarity index 100% rename from lib/LibDriver/LLVMBuild.txt rename to lib/ToolDrivers/llvm-lib/LLVMBuild.txt diff --git a/lib/LibDriver/LibDriver.cpp b/lib/ToolDrivers/llvm-lib/LibDriver.cpp similarity index 99% rename from lib/LibDriver/LibDriver.cpp rename to lib/ToolDrivers/llvm-lib/LibDriver.cpp index c50629d7150..3bae3826d62 100644 --- a/lib/LibDriver/LibDriver.cpp +++ b/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/lib/LibDriver/Options.td b/lib/ToolDrivers/llvm-lib/Options.td similarity index 100% rename from lib/LibDriver/Options.td rename to lib/ToolDrivers/llvm-lib/Options.td diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp index 1519464521d..3de260410bd 100644 --- a/tools/llvm-ar/llvm-ar.cpp +++ b/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" -- 2.40.0