diff options
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/GenericError.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/GenericError.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/GenericError.cpp b/llvm/lib/DebugInfo/PDB/GenericError.cpp index 586f300..70dc094 100644 --- a/llvm/lib/DebugInfo/PDB/GenericError.cpp +++ b/llvm/lib/DebugInfo/PDB/GenericError.cpp @@ -13,6 +13,7 @@ using namespace llvm; using namespace llvm::pdb; +namespace { // FIXME: This class is only here to support the transition to llvm::Error. It // will be removed once this transition is complete. Clients should prefer to // deal with the Error value directly, rather than converting to error_code. @@ -39,6 +40,7 @@ public: llvm_unreachable("Unrecognized generic_error_code"); } }; +} // namespace static llvm::ManagedStatic<PDBErrorCategory> PDBCategory; const std::error_category &llvm::pdb::PDBErrCategory() { return *PDBCategory; } |