Skip to content

Commit

Permalink
PseudoSourceValue.h - reduce GlobalValue.h include to forward declara…
Browse files Browse the repository at this point in the history
…tion. NFC.

Fix MachineMemOperand.h implicit dependency on Type.h via PseudoSourceValue.h
  • Loading branch information
RKSimon committed Apr 29, 2020
1 parent e00071d commit 5c4b4a6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion llvm/include/llvm/CodeGen/MachineMemOperand.h
Expand Up @@ -18,9 +18,10 @@
#include "llvm/ADT/BitmaskEnum.h"
#include "llvm/ADT/PointerUnion.h"
#include "llvm/CodeGen/PseudoSourceValue.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/Value.h" // PointerLikeTypeTraits<Value*>
#include "llvm/Support/AtomicOrdering.h"
#include "llvm/Support/DataTypes.h"
#include <cstdint>

namespace llvm {

Expand Down
2 changes: 1 addition & 1 deletion llvm/include/llvm/CodeGen/PseudoSourceValue.h
Expand Up @@ -14,12 +14,12 @@
#define LLVM_CODEGEN_PSEUDOSOURCEVALUE_H

#include "llvm/ADT/StringMap.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/IR/ValueMap.h"
#include <map>

namespace llvm {

class GlobalValue;
class MachineFrameInfo;
class MachineMemOperand;
class MIRFormatter;
Expand Down
1 change: 1 addition & 0 deletions llvm/lib/CodeGen/PseudoSourceValue.cpp
Expand Up @@ -15,6 +15,7 @@
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
Expand Down

0 comments on commit 5c4b4a6

Please sign in to comment.