Skip to content

Commit

Permalink
Revert r321838 -- It broke some of the builders.
Browse files Browse the repository at this point in the history
llvm-svn: 321842
  • Loading branch information
lhames committed Jan 5, 2018
1 parent 9110cb4 commit 0429ebf
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 831 deletions.
13 changes: 1 addition & 12 deletions llvm/include/llvm/ExecutionEngine/JITSymbol.h
Expand Up @@ -48,9 +48,7 @@ class JITSymbolFlags {
Weak = 1U << 1,
Common = 1U << 2,
Absolute = 1U << 3,
Exported = 1U << 4,
NotMaterialized = 1U << 5,
Materializing = 1U << 6
Exported = 1U << 4
};

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

/// @brief Returns true if this symbol has been fully materialized (i.e. is
/// callable).
bool isMaterialized() const { return !(Flags & NotMaterialized); }

/// @brief Returns true if this symbol is in the process of being
/// materialized. This is generally only of interest as an
/// implementation detail to JIT infrastructure.
bool isMaterializing() const { return Flags & Materializing; }

/// @brief Returns true if the Weak flag is set.
bool isWeak() const {
return (Flags & Weak) == Weak;
Expand Down
234 changes: 0 additions & 234 deletions llvm/include/llvm/ExecutionEngine/Orc/Core.h

This file was deleted.

15 changes: 1 addition & 14 deletions llvm/include/llvm/ExecutionEngine/Orc/OrcError.h
Expand Up @@ -22,8 +22,7 @@ namespace orc {

enum class OrcErrorCode : int {
// RPC Errors
DuplicateDefinition = 1,
JITSymbolNotFound,
JITSymbolNotFound = 1,
RemoteAllocatorDoesNotExist,
RemoteAllocatorIdAlreadyInUse,
RemoteMProtectAddrUnrecognized,
Expand All @@ -40,18 +39,6 @@ enum class OrcErrorCode : int {

std::error_code orcError(OrcErrorCode ErrCode);

class DuplicateDefinition : public ErrorInfo<DuplicateDefinition> {
public:
static char ID;

DuplicateDefinition(std::string SymbolName);
std::error_code convertToErrorCode() const override;
void log(raw_ostream &OS) const override;
const std::string &getSymbolName() const;
private:
std::string SymbolName;
};

class JITSymbolNotFound : public ErrorInfo<JITSymbolNotFound> {
public:
static char ID;
Expand Down
1 change: 0 additions & 1 deletion llvm/lib/ExecutionEngine/Orc/CMakeLists.txt
@@ -1,5 +1,4 @@
add_llvm_library(LLVMOrcJIT
Core.cpp
ExecutionUtils.cpp
IndirectionUtils.cpp
NullResolver.cpp
Expand Down

0 comments on commit 0429ebf

Please sign in to comment.