X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FFunction.h;h=b3b9716d4dfdd741d1a2ffe00158b17db5168fab;hb=1a957d563fe894c797e0eba00bf069fbe7ecba77;hp=a50601d1bab6533cd4be8b1d2e5a283cd4686da4;hpb=b90909e40536db17665727f5ca1c618e485464c3;p=oota-llvm.git diff --git a/include/llvm/Function.h b/include/llvm/Function.h index a50601d1bab..b3b9716d4df 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -81,6 +81,15 @@ private: void setNext(Function *N) { Next = N; } void setPrev(Function *N) { Prev = N; } + // getNext/Prev - Return the next or previous function in the list. These + // methods should never be used directly, and are only used to implement the + // function list as part of the module. + // + Function *getNext() { return Next; } + const Function *getNext() const { return Next; } + Function *getPrev() { return Prev; } + const Function *getPrev() const { return Prev; } + public: /// Function ctor - If the (optional) Module argument is specified, the /// function is automatically inserted into the end of the function list for @@ -243,15 +252,6 @@ public: Function *Obj = 0; return unsigned(reinterpret_cast(&Obj->ArgumentList)); } -private: - // getNext/Prev - Return the next or previous function in the list. These - // methods should never be used directly, and are only used to implement the - // function list as part of the module. - // - Function *getNext() { return Next; } - const Function *getNext() const { return Next; } - Function *getPrev() { return Prev; } - const Function *getPrev() const { return Prev; } }; inline ValueSymbolTable *