Remove unneeded indirection of GET_ARCHIVE
This commit is contained in:
parent
4f01329e0e
commit
f3d9de4528
1 changed files with 1 additions and 2 deletions
|
|
@ -32,7 +32,6 @@ struct LLVMRustArchiveMember {
|
|||
};
|
||||
|
||||
typedef OwningBinary<Archive> RustArchive;
|
||||
#define GET_ARCHIVE(a) ((a)->getBinary())
|
||||
|
||||
extern "C" void*
|
||||
LLVMRustOpenArchive(char *path) {
|
||||
|
|
@ -70,7 +69,7 @@ struct RustArchiveIterator {
|
|||
|
||||
extern "C" RustArchiveIterator*
|
||||
LLVMRustArchiveIteratorNew(RustArchive *ra) {
|
||||
Archive *ar = GET_ARCHIVE(ra);
|
||||
Archive *ar = ra->getBinary();
|
||||
RustArchiveIterator *rai = new RustArchiveIterator();
|
||||
rai->cur = ar->child_begin();
|
||||
rai->end = ar->child_end();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue