[llvm] a32d539 - [Target] Remove libObject dependency in lib/Target
Francis Visoiu Mistrih via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 21 14:52:47 PST 2020
Author: Francis Visoiu Mistrih
Date: 2020-02-21T14:52:31-08:00
New Revision: a32d539798e4f0b97420e7b60b223b3a3fae5ff1
URL: https://github.com/llvm/llvm-project/commit/a32d539798e4f0b97420e7b60b223b3a3fae5ff1
DIFF: https://github.com/llvm/llvm-project/commit/a32d539798e4f0b97420e7b60b223b3a3fae5ff1.diff
LOG: [Target] Remove libObject dependency in lib/Target
This removes a couple useless includes and the dependency of X86Desc on Object,
which was useless as well.
Added:
Modified:
llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
llvm/lib/Target/VE/MCTargetDesc/VEMCExpr.cpp
llvm/lib/Target/X86/MCTargetDesc/LLVMBuild.txt
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
index 02509e94c051..3d85ed939b03 100644
--- a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
+++ b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
@@ -20,7 +20,6 @@
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/MCSymbolELF.h"
#include "llvm/MC/MCValue.h"
-#include "llvm/Object/MachO.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/TargetRegistry.h"
using namespace llvm;
diff --git a/llvm/lib/Target/VE/MCTargetDesc/VEMCExpr.cpp b/llvm/lib/Target/VE/MCTargetDesc/VEMCExpr.cpp
index e601a6068536..3f503cf24624 100644
--- a/llvm/lib/Target/VE/MCTargetDesc/VEMCExpr.cpp
+++ b/llvm/lib/Target/VE/MCTargetDesc/VEMCExpr.cpp
@@ -16,7 +16,6 @@
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCObjectStreamer.h"
#include "llvm/MC/MCSymbolELF.h"
-#include "llvm/Object/ELF.h"
using namespace llvm;
diff --git a/llvm/lib/Target/X86/MCTargetDesc/LLVMBuild.txt b/llvm/lib/Target/X86/MCTargetDesc/LLVMBuild.txt
index a78ca5e12991..f7891d0e51b9 100644
--- a/llvm/lib/Target/X86/MCTargetDesc/LLVMBuild.txt
+++ b/llvm/lib/Target/X86/MCTargetDesc/LLVMBuild.txt
@@ -18,5 +18,5 @@
type = Library
name = X86Desc
parent = X86
-required_libraries = MC MCDisassembler Object Support X86Info X86Utils BinaryFormat
+required_libraries = MC MCDisassembler Support X86Info X86Utils BinaryFormat
add_to_library_groups = X86
More information about the llvm-commits
mailing list