diff options
-rw-r--r-- | llvm/include/llvm/IR/Verifier.h | 5 | ||||
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/llvm/include/llvm/IR/Verifier.h b/llvm/include/llvm/IR/Verifier.h index e5a98d86fd5..be983e49bab 100644 --- a/llvm/include/llvm/IR/Verifier.h +++ b/llvm/include/llvm/IR/Verifier.h @@ -23,10 +23,6 @@ #include "llvm/IR/PassManager.h" -namespace { -struct VerifierSupport; -} - namespace llvm { class Function; @@ -34,6 +30,7 @@ class FunctionPass; class ModulePass; class Module; class raw_ostream; +struct VerifierSupport; /// Verify that the TBAA Metadatas are valid. class TBAAVerifier { diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 7b2b1c49700..2b9dfcea2fb 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -117,7 +117,7 @@ using namespace llvm; static cl::opt<bool> VerifyDebugInfo("verify-debug-info", cl::init(true)); -namespace { +namespace llvm { struct VerifierSupport { raw_ostream *OS; @@ -248,6 +248,10 @@ public: } }; +} // namespace llvm + +namespace { + class Verifier : public InstVisitor<Verifier>, VerifierSupport { friend class InstVisitor<Verifier>; |