[llvm] r362368 - Include what you use in BPFMCTargetDesc.cpp
Dmitri Gribenko via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 3 02:29:51 PDT 2019
Author: gribozavr
Date: Mon Jun 3 02:29:51 2019
New Revision: 362368
URL: http://llvm.org/viewvc/llvm-project?rev=362368&view=rev
Log:
Include what you use in BPFMCTargetDesc.cpp
BPFMCTargetDesc.cpp was not using any APIs from BPF.h. Doing so is
problematic from include-what-you-use perspective, but it is also a
layering issue (it creates a dependency cycle between the primary
BPF target library and the MCTargetDesc library).
Modified:
llvm/trunk/lib/Target/BPF/MCTargetDesc/BPFMCTargetDesc.cpp
Modified: llvm/trunk/lib/Target/BPF/MCTargetDesc/BPFMCTargetDesc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/BPF/MCTargetDesc/BPFMCTargetDesc.cpp?rev=362368&r1=362367&r2=362368&view=diff
==============================================================================
--- llvm/trunk/lib/Target/BPF/MCTargetDesc/BPFMCTargetDesc.cpp (original)
+++ llvm/trunk/lib/Target/BPF/MCTargetDesc/BPFMCTargetDesc.cpp Mon Jun 3 02:29:51 2019
@@ -11,7 +11,6 @@
//===----------------------------------------------------------------------===//
#include "MCTargetDesc/BPFMCTargetDesc.h"
-#include "BPF.h"
#include "MCTargetDesc/BPFInstPrinter.h"
#include "MCTargetDesc/BPFMCAsmInfo.h"
#include "TargetInfo/BPFTargetInfo.h"
More information about the llvm-commits
mailing list