]> granicus.if.org Git - llvm/commitdiff
Include what you use in BPFMCTargetDesc.cpp
authorDmitri Gribenko <gribozavr@gmail.com>
Mon, 3 Jun 2019 09:29:51 +0000 (09:29 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Mon, 3 Jun 2019 09:29:51 +0000 (09:29 +0000)
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).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362368 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/BPF/MCTargetDesc/BPFMCTargetDesc.cpp

index 38f3931c3ad509e4dd56baaea8bfe81fa25da861..fa27b335f3a182053d003a9f53d1225eceb127ca 100644 (file)
@@ -11,7 +11,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "MCTargetDesc/BPFMCTargetDesc.h"
-#include "BPF.h"
 #include "MCTargetDesc/BPFInstPrinter.h"
 #include "MCTargetDesc/BPFMCAsmInfo.h"
 #include "TargetInfo/BPFTargetInfo.h"