mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-12 13:48:45 +00:00
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] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289942 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
df71b60812
commit
878b0578ef
@ -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 {
|
||||
|
@ -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>;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user