1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Change the semancics of the dropallrefs method

llvm-svn: 8572
This commit is contained in:
Chris Lattner 2003-09-17 04:58:59 +00:00
parent 0d28d582e1
commit 3df1f4b6a5

View File

@ -104,8 +104,6 @@ Function::Function(const FunctionType *Ty, LinkageTypes Linkage,
Function::~Function() {
dropAllReferences(); // After this it is safe to delete instructions.
BasicBlocks.clear(); // Delete all basic blocks...
// Delete all of the method arguments and unlink from symbol table...
ArgumentList.clear();
ArgumentList.setParent(0);
@ -149,6 +147,7 @@ const Type *Function::getReturnType() const {
void Function::dropAllReferences() {
for (iterator I = begin(), E = end(); I != E; ++I)
I->dropAllReferences();
BasicBlocks.clear(); // Delete all basic blocks...
}
/// getIntrinsicID - This method returns the ID number of the specified