diff options
author | Daniel Jasper <djasper@google.com> | 2016-12-16 13:53:46 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2016-12-16 13:53:46 +0000 |
commit | a44fd3014d65f42c5b8dbae62a90e50419cb6d57 (patch) | |
tree | 80e22ae114e77ee877411ee6d7e0881e4134f4ac /llvm/lib | |
parent | 24bf8689dd9e0d5b729ba866cd9833a1a24699c2 (diff) | |
download | bcm5719-llvm-a44fd3014d65f42c5b8dbae62a90e50419cb6d57.tar.gz bcm5719-llvm-a44fd3014d65f42c5b8dbae62a90e50419cb6d57.zip |
Move VerifierSupport into namespace llvm.
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
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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>; |