-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
99 additions
and
10 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
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,12 @@ | ||
#include "PymBinary.h" | ||
|
||
PymBinary::PymBinary(LLVMBinaryRef bin) | ||
: obj(get_shared_obj(bin)) { } | ||
|
||
LLVMBinaryRef PymBinary::get() const { | ||
return obj.get(); | ||
} | ||
|
||
SHARED_POINTER_IMPL(PymBinary, LLVMBinaryRef, LLVMOpaqueBinary, LLVMDisposeBinary) | ||
|
||
|
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,21 @@ | ||
#ifndef LLVMPYM_TYPES_PRIV_PYMBINARY_H | ||
#define LLVMPYM_TYPES_PRIV_PYMBINARY_H | ||
|
||
#include <llvm-c/Object.h> | ||
#include <memory> | ||
#include <unordered_map> | ||
#include <mutex> | ||
#include "PymLLVMObject.h" | ||
#include "utils.h" | ||
|
||
class PymBinary : public PymLLVMObject<PymBinary, LLVMBinaryRef> { | ||
public: | ||
explicit PymBinary(LLVMBinaryRef bin); | ||
LLVMBinaryRef get() const; | ||
|
||
private: | ||
SHARED_POINTER_DEF(LLVMBinaryRef, LLVMOpaqueBinary); | ||
}; | ||
|
||
|
||
#endif |