-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix llvm and removed unused dependencies
- Loading branch information
1 parent
36422ac
commit cd52b03
Showing
6 changed files
with
53 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
cmake_minimum_required(VERSION 3.15) | ||
project(dummy_orc_eh) | ||
|
||
add_library(dummy_orc_eh SHARED dummy_orc_eh.cc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#include <cstddef> | ||
namespace dummy_orc_eh | ||
{ | ||
union CWrapperFunctionResultDataUnion | ||
{ | ||
char *ValuePtr; | ||
char Value[sizeof(ValuePtr)]; | ||
}; | ||
|
||
typedef struct | ||
{ | ||
CWrapperFunctionResultDataUnion Data; | ||
size_t Size; | ||
} CWrapperFunctionResult; | ||
extern "C" | ||
{ | ||
CWrapperFunctionResult llvm_orc_registerEHFrameSectionWrapper(const char *Data, size_t Size) | ||
{ | ||
CWrapperFunctionResult r; | ||
r.Data.ValuePtr = nullptr; | ||
r.Size = 0; | ||
return r; | ||
} | ||
CWrapperFunctionResult llvm_orc_deregisterEHFrameSectionWrapper(const char *Data, size_t Size) | ||
{ | ||
CWrapperFunctionResult r; | ||
r.Data.ValuePtr = nullptr; | ||
r.Size = 0; | ||
return r; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters