[LLVMdev] Duplicate wrapper function in LLVM-C.

Mahadevan R mdevan.foobar at gmail.com
Sun May 18 10:20:35 PDT 2008


Hi (Gordon).

There appears to be two wrapper functions for
DerivedType::refineAbstractTypeTo() in llvm-c (Core.h, Core.cpp):

void LLVMRefineAbstractType(LLVMTypeRef AbstractType, LLVMTypeRef ConcreteType){
  DerivedType *Ty = unwrap<DerivedType>(AbstractType);
  Ty->refineAbstractTypeTo(unwrap(ConcreteType));
}

void LLVMRefineType(LLVMTypeRef AbstractTy, LLVMTypeRef ConcreteTy) {
  unwrap<DerivedType>(AbstractTy)->refineAbstractTypeTo(unwrap(ConcreteTy));
}

The attached patch removes the first one.

Regards,
-Mahadevan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rm_dup_wrapper_fn.patch
Type: text/x-diff
Size: 1143 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080518/0fcad198/attachment.patch>


More information about the llvm-dev mailing list