Skip to content

Commit

Permalink
MCFixup.h - remove unnecessary MCExpr.h include. NFCI.
Browse files Browse the repository at this point in the history
Move the include down to files that actually depend on MCExpr definitions.

Also exposes an implicit dependency on MCContext in AVRAsmBackend.h
  • Loading branch information
RKSimon committed Jul 20, 2020
1 parent a0ed0e3 commit 017e5c9
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion llvm/include/llvm/MC/MCFixup.h
Expand Up @@ -9,7 +9,6 @@
#ifndef LLVM_MC_MCFIXUP_H
#define LLVM_MC_MCFIXUP_H

#include "llvm/MC/MCExpr.h"
#include "llvm/Support/DataTypes.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/SMLoc.h"
Expand Down
2 changes: 1 addition & 1 deletion llvm/include/llvm/MC/MCSymbol.h
Expand Up @@ -16,6 +16,7 @@
#include "llvm/ADT/PointerIntPair.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCFragment.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MathExtras.h"
Expand All @@ -27,7 +28,6 @@ namespace llvm {

class MCAsmInfo;
class MCContext;
class MCExpr;
class MCSection;
class raw_ostream;

Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
Expand Up @@ -13,12 +13,12 @@
#include "MCTargetDesc/AVRAsmBackend.h"
#include "MCTargetDesc/AVRFixupKinds.h"
#include "MCTargetDesc/AVRMCTargetDesc.h"

#include "llvm/MC/MCAsmBackend.h"
#include "llvm/MC/MCAssembler.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCDirectives.h"
#include "llvm/MC/MCELFObjectWriter.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCFixupKindInfo.h"
#include "llvm/MC/MCObjectWriter.h"
#include "llvm/MC/MCSubtargetInfo.h"
Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h
Expand Up @@ -22,6 +22,7 @@
namespace llvm {

class MCAssembler;
class MCContext;
struct MCFixupKindInfo;

/// Utilities for manipulating generated AVR machine code.
Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Target/BPF/MCTargetDesc/BPFMCCodeEmitter.cpp
Expand Up @@ -13,6 +13,7 @@
#include "MCTargetDesc/BPFMCTargetDesc.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/MC/MCCodeEmitter.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCFixup.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstrInfo.h"
Expand Down
1 change: 1 addition & 0 deletions llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCompound.cpp
Expand Up @@ -14,6 +14,7 @@
#include "MCTargetDesc/HexagonMCInstrInfo.h"
#include "MCTargetDesc/HexagonMCShuffler.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
Expand Down

0 comments on commit 017e5c9

Please sign in to comment.