X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FAbstractTypeUser.h;h=d21116539419235e99acfec25e859edb79116526;hb=440f87eea20f11ea86822816fae965956795d6d3;hp=e4096787f438d723b78d5871631744f03ee89188;hpb=7685ac8d35a0c74f6d341f9589fdaedcd1564310;p=oota-llvm.git diff --git a/include/llvm/AbstractTypeUser.h b/include/llvm/AbstractTypeUser.h index e4096787f43..d2111653941 100644 --- a/include/llvm/AbstractTypeUser.h +++ b/include/llvm/AbstractTypeUser.h @@ -1,4 +1,11 @@ //===-- llvm/AbstractTypeUser.h - AbstractTypeUser Interface ----*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file was developed by the LLVM research group and is distributed under +// the University of Illinois Open Source License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// // // The AbstractTypeUser class is an interface to be implemented by classes who // could possible use an abstract type. Abstract types are denoted by the @@ -30,6 +37,8 @@ // #include +namespace llvm { + class Type; class DerivedType; @@ -134,6 +143,8 @@ public: addRef(); } + ~PATypeHolder() { dropRef(); } + operator const Type *() const { return get(); } const Type *get() const; @@ -158,4 +169,6 @@ private: void dropRef(); }; +} // End llvm namespace + #endif