Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit d84b15b

Browse files
committed
[ORC] Re-revert r321838: Tests are still failing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321858 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 09d2d44 commit d84b15b

File tree

8 files changed

+4
-832
lines changed

8 files changed

+4
-832
lines changed

include/llvm/ExecutionEngine/JITSymbol.h

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ class JITSymbolFlags {
4848
Weak = 1U << 1,
4949
Common = 1U << 2,
5050
Absolute = 1U << 3,
51-
Exported = 1U << 4,
52-
NotMaterialized = 1U << 5,
53-
Materializing = 1U << 6
51+
Exported = 1U << 4
5452
};
5553

5654
/// @brief Default-construct a JITSymbolFlags instance.
@@ -69,15 +67,6 @@ class JITSymbolFlags {
6967
return (Flags & HasError) == HasError;
7068
}
7169

72-
/// @brief Returns true if this symbol has been fully materialized (i.e. is
73-
/// callable).
74-
bool isMaterialized() const { return !(Flags & NotMaterialized); }
75-
76-
/// @brief Returns true if this symbol is in the process of being
77-
/// materialized. This is generally only of interest as an
78-
/// implementation detail to JIT infrastructure.
79-
bool isMaterializing() const { return Flags & Materializing; }
80-
8170
/// @brief Returns true if the Weak flag is set.
8271
bool isWeak() const {
8372
return (Flags & Weak) == Weak;

include/llvm/ExecutionEngine/Orc/Core.h

Lines changed: 0 additions & 234 deletions
This file was deleted.

include/llvm/ExecutionEngine/Orc/OrcError.h

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ namespace orc {
2222

2323
enum class OrcErrorCode : int {
2424
// RPC Errors
25-
DuplicateDefinition = 1,
26-
JITSymbolNotFound,
25+
JITSymbolNotFound = 1,
2726
RemoteAllocatorDoesNotExist,
2827
RemoteAllocatorIdAlreadyInUse,
2928
RemoteMProtectAddrUnrecognized,
@@ -40,18 +39,6 @@ enum class OrcErrorCode : int {
4039

4140
std::error_code orcError(OrcErrorCode ErrCode);
4241

43-
class DuplicateDefinition : public ErrorInfo<DuplicateDefinition> {
44-
public:
45-
static char ID;
46-
47-
DuplicateDefinition(std::string SymbolName);
48-
std::error_code convertToErrorCode() const override;
49-
void log(raw_ostream &OS) const override;
50-
const std::string &getSymbolName() const;
51-
private:
52-
std::string SymbolName;
53-
};
54-
5542
class JITSymbolNotFound : public ErrorInfo<JITSymbolNotFound> {
5643
public:
5744
static char ID;

lib/ExecutionEngine/Orc/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
add_llvm_library(LLVMOrcJIT
2-
Core.cpp
32
ExecutionUtils.cpp
43
IndirectionUtils.cpp
54
NullResolver.cpp

0 commit comments

Comments
 (0)