mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Don't import error_category into the llvm namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210733 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
class InstrProfErrorCategoryType : public error_category {
|
||||
class InstrProfErrorCategoryType : public std::error_category {
|
||||
const char *name() const LLVM_NOEXCEPT override { return "llvm.instrprof"; }
|
||||
std::string message(int IE) const override {
|
||||
instrprof_error E = static_cast<instrprof_error>(IE);
|
||||
@@ -61,7 +61,7 @@ class InstrProfErrorCategoryType : public error_category {
|
||||
};
|
||||
}
|
||||
|
||||
const error_category &llvm::instrprof_category() {
|
||||
const std::error_category &llvm::instrprof_category() {
|
||||
static InstrProfErrorCategoryType C;
|
||||
return C;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user