[llvm] r362369 - Include what you use in HexagonShuffler.h
Dmitri Gribenko via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 3 02:33:48 PDT 2019
Author: gribozavr
Date: Mon Jun 3 02:33:48 2019
New Revision: 362369
URL: http://llvm.org/viewvc/llvm-project?rev=362369&view=rev
Log:
Include what you use in HexagonShuffler.h
HexagonShuffler.h was not using any APIs from Hexagon.h, and was only
including it for transitive dependencies. 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 Hexagon target library
and the MCTargetDesc library).
Modified:
llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.h
Modified: llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.h?rev=362369&r1=362368&r2=362369&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.h (original)
+++ llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.h Mon Jun 3 02:33:48 2019
@@ -14,8 +14,8 @@
#ifndef LLVM_LIB_TARGET_HEXAGON_MCTARGETDESC_HEXAGONSHUFFLER_H
#define LLVM_LIB_TARGET_HEXAGON_MCTARGETDESC_HEXAGONSHUFFLER_H
-#include "Hexagon.h"
#include "MCTargetDesc/HexagonMCInstrInfo.h"
+#include "MCTargetDesc/HexagonMCTargetDesc.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
More information about the llvm-commits
mailing list