summaryrefslogtreecommitdiff
path: root/include/llvm/Function.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-03 19:28:15 +0000
committerChris Lattner <sabre@nondot.org>2001-10-03 19:28:15 +0000
commit4387370c1c6dd64ad01be0fc91836616d908e917 (patch)
treebb7a8e03db70bb1140ee30677acd097baa8c1a29 /include/llvm/Function.h
parent6a57baa295bb3dbd389581df968536f594709bdb (diff)
downloadllvm-4387370c1c6dd64ad01be0fc91836616d908e917.tar.gz
llvm-4387370c1c6dd64ad01be0fc91836616d908e917.tar.bz2
llvm-4387370c1c6dd64ad01be0fc91836616d908e917.tar.xz
Factor parentness out of Module & GlobalVariable into GlobalValue
Implement SymbolTable debug/dump utility git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@710 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r--include/llvm/Function.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h
index d7c35b3c04..fe878bf45e 100644
--- a/include/llvm/Function.h
+++ b/include/llvm/Function.h
@@ -38,8 +38,6 @@ private:
BasicBlocksType BasicBlocks; // The basic blocks
ArgumentListType ArgumentList; // The formal arguments
- Module *Parent; // The module that contains this method
-
friend class ValueHolder<Method, Module, Module>;
void setParent(Module *parent);
@@ -58,10 +56,6 @@ public:
bool isExternal() const { return BasicBlocks.empty(); }
- // Get the class structure that this method is contained inside of...
- inline Module *getParent() { return Parent; }
- inline const Module *getParent() const { return Parent; }
-
// Get the underlying elements of the Method...
inline const ArgumentListType &getArgumentList() const{ return ArgumentList; }
inline ArgumentListType &getArgumentList() { return ArgumentList; }