[llvm] 0bd13e9 - ParallelCG.h - replace TargetMachine.h include with forward declaration. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 12 05:37:34 PDT 2020


Author: Simon Pilgrim
Date: 2020-04-12T12:36:02+01:00
New Revision: 0bd13e98cb4fbdab8069105723f5e793a4116c66

URL: https://github.com/llvm/llvm-project/commit/0bd13e98cb4fbdab8069105723f5e793a4116c66
DIFF: https://github.com/llvm/llvm-project/commit/0bd13e98cb4fbdab8069105723f5e793a4116c66.diff

LOG: ParallelCG.h - replace TargetMachine.h include with forward declaration. NFC.

We need to include memory.h as it was being implicitly included.

Also remove unused llvm::TargetOptions forward declaration.

Added: 
    

Modified: 
    llvm/include/llvm/CodeGen/ParallelCG.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/ParallelCG.h b/llvm/include/llvm/CodeGen/ParallelCG.h
index b4c761c2269e..5504baa6225c 100644
--- a/llvm/include/llvm/CodeGen/ParallelCG.h
+++ b/llvm/include/llvm/CodeGen/ParallelCG.h
@@ -14,15 +14,14 @@
 #define LLVM_CODEGEN_PARALLELCG_H
 
 #include "llvm/Support/CodeGen.h"
-#include "llvm/Target/TargetMachine.h"
-
 #include <functional>
+#include <memory>
 
 namespace llvm {
 
 template <typename T> class ArrayRef;
 class Module;
-class TargetOptions;
+class TargetMachine;
 class raw_pwrite_stream;
 
 /// Split M into OSs.size() partitions, and generate code for each. Takes a


        


More information about the llvm-commits mailing list