Skip to content

Commit d44ca0c

Browse files
[CodeGen] Forward-declare TargetMachine (NFC)
InstrEmitter.h needs TargetMachine but relies on a forward declaration of TargetMachine in MachineOperand.h. This patch adds a forward declaration right in InstrEmitter.h. While we are at it, this patch removes the one in MachineOperand.h, where it is unnecessary.
1 parent 116177a commit d44ca0c

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

llvm/include/llvm/CodeGen/MachineOperand.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ class MachineRegisterInfo;
3333
class MCCFIInstruction;
3434
class MDNode;
3535
class ModuleSlotTracker;
36-
class TargetMachine;
3736
class TargetIntrinsicInfo;
3837
class TargetRegisterInfo;
3938
class hash_code;

llvm/lib/CodeGen/SelectionDAG/InstrEmitter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class MCInstrDesc;
2626
class SDDbgLabel;
2727
class SDDbgValue;
2828
class TargetLowering;
29+
class TargetMachine;
2930

3031
class LLVM_LIBRARY_VISIBILITY InstrEmitter {
3132
MachineFunction *MF;

0 commit comments

Comments
 (0)