mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	Debug Info IR: Switch DIObjCProperty to use DITypeRef.
This is a prerequisite for turning on ODR type uniquing for ObjC++. rdar://problem/21377883 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239780 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -1945,7 +1945,7 @@ TEST_F(DIObjCPropertyTest, get) { | ||||
|   StringRef GetterName = "getter"; | ||||
|   StringRef SetterName = "setter"; | ||||
|   unsigned Attributes = 7; | ||||
|   DIType *Type = cast<DIBasicType>(getBasicType("basic")); | ||||
|   DITypeRef Type = getBasicType("basic"); | ||||
|  | ||||
|   auto *N = DIObjCProperty::get(Context, Name, File, Line, GetterName, | ||||
|                                 SetterName, Attributes, Type); | ||||
| @@ -1975,7 +1975,7 @@ TEST_F(DIObjCPropertyTest, get) { | ||||
|                                    SetterName, Attributes + 1, Type)); | ||||
|   EXPECT_NE(N, DIObjCProperty::get(Context, Name, File, Line, GetterName, | ||||
|                                    SetterName, Attributes, | ||||
|                                    cast<DIBasicType>(getBasicType("other")))); | ||||
|                                    getBasicType("other"))); | ||||
|  | ||||
|   TempDIObjCProperty Temp = N->clone(); | ||||
|   EXPECT_EQ(N, MDNode::replaceWithUniqued(std::move(Temp))); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user