From 5fc55dc3cf2331ec503236c4abefed3dcd8156af Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 20 Aug 2010 22:39:47 +0000 Subject: [PATCH] CreateTemporaryType doesn't needs its Context argument. llvm-svn: 111687 --- llvm/include/llvm/Analysis/DebugInfo.h | 2 +- llvm/lib/Analysis/DebugInfo.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Analysis/DebugInfo.h b/llvm/include/llvm/Analysis/DebugInfo.h index da226273a019..51bede091c1f 100644 --- a/llvm/include/llvm/Analysis/DebugInfo.h +++ b/llvm/include/llvm/Analysis/DebugInfo.h @@ -655,7 +655,7 @@ namespace llvm { MDNode *ContainingType = 0); /// CreateTemporaryType - Create a temporary forward-declared type. - DIType CreateTemporaryType(DIDescriptor Context); + DIType CreateTemporaryType(); /// CreateArtificialType - Create a new DIType with "artificial" flag set. DIType CreateArtificialType(DIType Ty); diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp index 065a00ae609c..0bd7904060a1 100644 --- a/llvm/lib/Analysis/DebugInfo.cpp +++ b/llvm/lib/Analysis/DebugInfo.cpp @@ -937,7 +937,7 @@ DICompositeType DIFactory::CreateCompositeType(unsigned Tag, /// CreateTemporaryType - Create a temporary forward-declared type. -DIType DIFactory::CreateTemporaryType(DIDescriptor Context) { +DIType DIFactory::CreateTemporaryType() { // Give the temporary MDNode a tag. It doesn't matter what tag we // use here as long as DIType accepts it. Value *Elts[] = {