It currently is in an unnamed namespace and then it shouldn't be used
from something in the header file. This actually triggers a warning with
GCC:
../include/llvm/IR/Verifier.h:39:7: warning: ‘llvm::TBAAVerifier’ has a field ‘llvm::TBAAVerifier::Diagnostic’ whose type uses the anonymous namespace [enabled by default]
llvm-svn: 289942
#include "llvm/IR/PassManager.h"
-namespace {
-struct VerifierSupport;
-}
-
namespace llvm {
class Function;
class ModulePass;
class Module;
class raw_ostream;
+struct VerifierSupport;
/// Verify that the TBAA Metadatas are valid.
class TBAAVerifier {
static cl::opt<bool> VerifyDebugInfo("verify-debug-info", cl::init(true));
-namespace {
+namespace llvm {
struct VerifierSupport {
raw_ostream *OS;
}
};
+} // namespace llvm
+
+namespace {
+
class Verifier : public InstVisitor<Verifier>, VerifierSupport {
friend class InstVisitor<Verifier>;