From 9d8877baf814019e8dd90536c1abf4428c9bce7d Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Thu, 12 Apr 2018 18:35:08 +0000 Subject: [ORC] Plumb error notifications through the VSO interface. This allows materializers to notify the VSO that they were unable to resolve or finalize symbols. llvm-svn: 329934 --- llvm/lib/ExecutionEngine/Orc/OrcError.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/ExecutionEngine/Orc/OrcError.cpp') diff --git a/llvm/lib/ExecutionEngine/Orc/OrcError.cpp b/llvm/lib/ExecutionEngine/Orc/OrcError.cpp index f0bfed8ddb8..f4102b359a6 100644 --- a/llvm/lib/ExecutionEngine/Orc/OrcError.cpp +++ b/llvm/lib/ExecutionEngine/Orc/OrcError.cpp @@ -29,6 +29,8 @@ public: std::string message(int condition) const override { switch (static_cast(condition)) { + case OrcErrorCode::UnknownORCError: + return "Unknown ORC error"; case OrcErrorCode::DuplicateDefinition: return "Duplicate symbol definition"; case OrcErrorCode::JITSymbolNotFound: -- cgit v1.2.3