diff --git a/llvm/include/llvm/PassAnalysisSupport.h b/llvm/include/llvm/PassAnalysisSupport.h --- a/llvm/include/llvm/PassAnalysisSupport.h +++ b/llvm/include/llvm/PassAnalysisSupport.h @@ -15,10 +15,13 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_PASS_H +#error "Do not include ; include instead" +#endif + #ifndef LLVM_PASSANALYSISSUPPORT_H #define LLVM_PASSANALYSISSUPPORT_H -#include "Pass.h" #include "llvm/ADT/SmallVector.h" #include #include diff --git a/llvm/include/llvm/PassSupport.h b/llvm/include/llvm/PassSupport.h --- a/llvm/include/llvm/PassSupport.h +++ b/llvm/include/llvm/PassSupport.h @@ -17,6 +17,10 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_PASS_H +#error "Do not include ; include instead" +#endif + #ifndef LLVM_PASSSUPPORT_H #define LLVM_PASSSUPPORT_H diff --git a/llvm/lib/IR/PassRegistry.cpp b/llvm/lib/IR/PassRegistry.cpp --- a/llvm/lib/IR/PassRegistry.cpp +++ b/llvm/lib/IR/PassRegistry.cpp @@ -14,7 +14,7 @@ #include "llvm/PassRegistry.h" #include "llvm/ADT/STLExtras.h" #include "llvm/PassInfo.h" -#include "llvm/PassSupport.h" +#include "llvm/Pass.h" #include "llvm/Support/ManagedStatic.h" #include #include