aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-ml
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2021-10-08 10:48:15 -0700
committerReid Kleckner <rnk@google.com>2021-10-08 14:51:48 -0700
commit89b57061f7b769e9ea9bf6ed686e284f3e55affe (patch)
treebca28b6459fb9dbaef3f43c4222d414b4576d0de /llvm/tools/llvm-ml
parent3db1ade368e538ba795486eea4923e331a8dde5a (diff)
downloadllvm-89b57061f7b769e9ea9bf6ed686e284f3e55affe.zip
llvm-89b57061f7b769e9ea9bf6ed686e284f3e55affe.tar.gz
llvm-89b57061f7b769e9ea9bf6ed686e284f3e55affe.tar.bz2
Move TargetRegistry.(h|cpp) from Support to MC
This moves the registry higher in the LLVM library dependency stack. Every client of the target registry needs to link against MC anyway to actually use the target, so we might as well move this out of Support. This allows us to ensure that Support doesn't have includes from MC/*. Differential Revision: https://reviews.llvm.org/D111454
Diffstat (limited to 'llvm/tools/llvm-ml')
-rw-r--r--llvm/tools/llvm-ml/Disassembler.cpp2
-rw-r--r--llvm/tools/llvm-ml/llvm-ml.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-ml/Disassembler.cpp b/llvm/tools/llvm-ml/Disassembler.cpp
index 0e2b028..6a96c88 100644
--- a/llvm/tools/llvm-ml/Disassembler.cpp
+++ b/llvm/tools/llvm-ml/Disassembler.cpp
@@ -20,9 +20,9 @@
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSubtargetInfo.h"
+#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SourceMgr.h"
-#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
diff --git a/llvm/tools/llvm-ml/llvm-ml.cpp b/llvm/tools/llvm-ml/llvm-ml.cpp
index 0e6b055..c08a71c 100644
--- a/llvm/tools/llvm-ml/llvm-ml.cpp
+++ b/llvm/tools/llvm-ml/llvm-ml.cpp
@@ -25,6 +25,7 @@
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/MCTargetOptionsCommandFlags.h"
+#include "llvm/MC/TargetRegistry.h"
#include "llvm/Option/Arg.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Option/Option.h"
@@ -38,7 +39,6 @@
#include "llvm/Support/Path.h"
#include "llvm/Support/Process.h"
#include "llvm/Support/SourceMgr.h"
-#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/Support/ToolOutputFile.h"
#include "llvm/Support/WithColor.h"