mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Rename LLVMUseIteratorRef to LLVMUseRef since we don't refer to iterators in llvm-c.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97585 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1aa3e9269f
commit
24b3733425
@ -92,11 +92,8 @@ typedef struct LLVMOpaqueMemoryBuffer *LLVMMemoryBufferRef;
|
||||
/** See the llvm::PassManagerBase class. */
|
||||
typedef struct LLVMOpaquePassManager *LLVMPassManagerRef;
|
||||
|
||||
/**
|
||||
* Used to iterate through the uses of a Value, allowing access to all Values
|
||||
* that use this Value. See the llvm::Use and llvm::value_use_iterator classes.
|
||||
*/
|
||||
typedef struct LLVMOpaqueUseIterator *LLVMUseIteratorRef;
|
||||
/** Used to get the users and usees of a Value. See the llvm::Use class. */
|
||||
typedef struct LLVMOpaqueUse *LLVMUseRef;
|
||||
|
||||
typedef enum {
|
||||
LLVMZExtAttribute = 1<<0,
|
||||
@ -514,10 +511,10 @@ void LLVMSetMetadata(LLVMValueRef Val, unsigned KindID, LLVMValueRef Node);
|
||||
LLVM_FOR_EACH_VALUE_SUBCLASS(LLVM_DECLARE_VALUE_CAST)
|
||||
|
||||
/* Operations on Uses */
|
||||
LLVMUseIteratorRef LLVMGetFirstUse(LLVMValueRef Val);
|
||||
LLVMUseIteratorRef LLVMGetNextUse(LLVMUseIteratorRef U);
|
||||
LLVMValueRef LLVMGetUser(LLVMUseIteratorRef U);
|
||||
LLVMValueRef LLVMGetUsedValue(LLVMUseIteratorRef U);
|
||||
LLVMUseRef LLVMGetFirstUse(LLVMValueRef Val);
|
||||
LLVMUseRef LLVMGetNextUse(LLVMUseRef U);
|
||||
LLVMValueRef LLVMGetUser(LLVMUseRef U);
|
||||
LLVMValueRef LLVMGetUsedValue(LLVMUseRef U);
|
||||
|
||||
/* Operations on Users */
|
||||
LLVMValueRef LLVMGetOperand(LLVMValueRef Val, unsigned Index);
|
||||
@ -1096,7 +1093,7 @@ namespace llvm {
|
||||
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(PATypeHolder, LLVMTypeHandleRef )
|
||||
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef )
|
||||
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(LLVMContext, LLVMContextRef )
|
||||
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(Use, LLVMUseIteratorRef )
|
||||
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(Use, LLVMUseRef )
|
||||
DEFINE_STDCXX_CONVERSION_FUNCTIONS(PassManagerBase, LLVMPassManagerRef )
|
||||
/* LLVMModuleProviderRef exists for historical reasons, but now just holds a
|
||||
* Module.
|
||||
|
@ -456,7 +456,7 @@ void LLVMSetMetadata(LLVMValueRef Inst, unsigned KindID, LLVMValueRef MD) {
|
||||
LLVM_FOR_EACH_VALUE_SUBCLASS(LLVM_DEFINE_VALUE_CAST)
|
||||
|
||||
/*--.. Operations on Uses ..................................................--*/
|
||||
LLVMUseIteratorRef LLVMGetFirstUse(LLVMValueRef Val) {
|
||||
LLVMUseRef LLVMGetFirstUse(LLVMValueRef Val) {
|
||||
Value *V = unwrap(Val);
|
||||
Value::use_iterator I = V->use_begin();
|
||||
if (I == V->use_end())
|
||||
@ -464,16 +464,19 @@ LLVMUseIteratorRef LLVMGetFirstUse(LLVMValueRef Val) {
|
||||
return wrap(&(I.getUse()));
|
||||
}
|
||||
|
||||
LLVMUseIteratorRef LLVMGetNextUse(LLVMUseIteratorRef UR) {
|
||||
return wrap(unwrap(UR)->getNext());
|
||||
LLVMUseRef LLVMGetNextUse(LLVMUseRef U) {
|
||||
Use *Next = unwrap(U)->getNext();
|
||||
if (Next)
|
||||
return wrap(Next);
|
||||
return 0;
|
||||
}
|
||||
|
||||
LLVMValueRef LLVMGetUser(LLVMUseIteratorRef UR) {
|
||||
return wrap(unwrap(UR)->getUser());
|
||||
LLVMValueRef LLVMGetUser(LLVMUseRef U) {
|
||||
return wrap(unwrap(U)->getUser());
|
||||
}
|
||||
|
||||
LLVMValueRef LLVMGetUsedValue(LLVMUseIteratorRef UR) {
|
||||
return wrap(unwrap(UR)->get());
|
||||
LLVMValueRef LLVMGetUsedValue(LLVMUseRef U) {
|
||||
return wrap(unwrap(U)->get());
|
||||
}
|
||||
|
||||
/*--.. Operations on Users .................................................--*/
|
||||
|
Loading…
Reference in New Issue
Block a user