@@ -89,10 +89,10 @@ public static void Main( string[] args )
8989
9090 #region CreatingBasicTypesWithDebugInfo
9191 // Create basic types used in this compilation
92- var i32 = new DebugBasicType ( module . Context . Int32Type , in diBuilder , "int" , DiTypeKind . Signed ) ;
93- var f32 = new DebugBasicType ( module . Context . FloatType , in diBuilder , "float" , DiTypeKind . Float ) ;
92+ var i32 = new DebugBasicType ( module . Context . Int32Type , diBuilder , "int" , DiTypeKind . Signed ) ;
93+ var f32 = new DebugBasicType ( module . Context . FloatType , diBuilder , "float" , DiTypeKind . Float ) ;
9494 var voidType = DebugType . Create ( module . Context . VoidType , ( DIType ? ) null ) ;
95- var i32Array_0_32 = i32 . CreateArrayType ( in diBuilder , 0 , 32 ) ;
95+ var i32Array_0_32 = i32 . CreateArrayType ( diBuilder , 0 , 32 ) ;
9696 #endregion
9797
9898 #region CreatingStructureTypes
@@ -104,7 +104,7 @@ public static void Main( string[] args )
104104 new ( 2 , "c" , diFile , 5 , i32Array_0_32 ) ,
105105 } ;
106106
107- var fooType = new DebugStructType ( in diBuilder , "struct.foo" , compilationUnit , "foo" , diFile , 1 , DebugInfoFlags . None , fooBody ) ;
107+ var fooType = new DebugStructType ( diBuilder , "struct.foo" , compilationUnit , "foo" , diFile , 1 , DebugInfoFlags . None , fooBody ) ;
108108 #endregion
109109
110110 #region CreatingGlobalsAndMetadata
@@ -133,17 +133,17 @@ public static void Main( string[] args )
133133 #region CreatingQualifiedTypes
134134 // create types for function args
135135 var constFoo = diBuilder . CreateQualifiedType ( fooType . DebugInfoType , QualifiedTypeTag . Const ) ;
136- var fooPtr = new DebugPointerType ( fooType , in diBuilder ) ;
136+ var fooPtr = new DebugPointerType ( fooType , diBuilder ) ;
137137 #endregion
138138
139139 // Create the functions
140140 // NOTE: The declaration ordering is reversed from that of the sample code file (test.c)
141141 // However, this is what Clang ends up doing for some reason so it is
142142 // replicated here to aid in comparing the generated LL files.
143- Function doCopyFunc = DeclareDoCopyFunc ( in diBuilder , diFile , voidType , abiAttributes ) ;
144- Function copyFunc = DeclareCopyFunc ( targetABI , in diBuilder , diFile , voidType , constFoo , fooPtr , abiAttributes ) ;
143+ Function doCopyFunc = DeclareDoCopyFunc ( diBuilder , diFile , voidType , abiAttributes ) ;
144+ Function copyFunc = DeclareCopyFunc ( targetABI , diBuilder , diFile , voidType , constFoo , fooPtr , abiAttributes ) ;
145145
146- CreateCopyFunctionBody ( in diBuilder , copyFunc , diFile , fooType , fooPtr , constFoo ) ;
146+ CreateCopyFunctionBody ( diBuilder , copyFunc , diFile , fooType , fooPtr , constFoo ) ;
147147 CreateDoCopyFunctionBody ( module , doCopyFunc , fooType , bar , baz , copyFunc ) ;
148148
149149 // finalize the debug information
@@ -185,16 +185,16 @@ private static void ShowUsage( )
185185
186186 #region FunctionDeclarations
187187 private static Function DeclareDoCopyFunc (
188- ref readonly DIBuilder diBuilder ,
188+ DIBuilder diBuilder ,
189189 DIFile diFile ,
190190 IDebugType < ITypeRef , DIType > voidType ,
191191 IEnumerable < AttributeValue > abiAttributes
192192 )
193193 {
194194 var module = diBuilder . OwningModule ;
195- var doCopySig = module . Context . CreateFunctionType ( in diBuilder , voidType ) ;
195+ var doCopySig = module . Context . CreateFunctionType ( diBuilder , voidType ) ;
196196
197- var doCopyFunc = module . CreateFunction ( in diBuilder
197+ var doCopyFunc = module . CreateFunction ( diBuilder
198198 , scope : diFile
199199 , name : "DoCopy"
200200 , linkageName : null
@@ -212,7 +212,7 @@ IEnumerable<AttributeValue> abiAttributes
212212 }
213213
214214 private static Function DeclareCopyFunc ( ITargetABI abi
215- , ref readonly DIBuilder diBuilder
215+ , DIBuilder diBuilder
216216 , DIFile diFile
217217 , IDebugType < ITypeRef , DIType > voidType
218218 , DIDerivedType constFoo
@@ -230,13 +230,13 @@ private static Function DeclareCopyFunc( ITargetABI abi
230230 // To get the correct debug info signature this inserts an
231231 // explicit DebugType<> that overrides the default behavior
232232 // to pair the LLVM pointer type with the original source type.
233- var copySig = module . Context . CreateFunctionType ( in diBuilder
233+ var copySig = module . Context . CreateFunctionType ( diBuilder
234234 , voidType
235235 , DebugType . Create ( fooPtr , constFoo )
236236 , fooPtr
237237 ) ;
238238
239- var copyFunc = module . CreateFunction ( in diBuilder
239+ var copyFunc = module . CreateFunction ( diBuilder
240240 , scope : diFile
241241 , name : "copy"
242242 , linkageName : null
@@ -268,7 +268,7 @@ private static void AddModuleFlags( ITargetABI abi, Module module, ILibLlvm libr
268268 }
269269 #endregion
270270
271- private static void CreateCopyFunctionBody ( ref readonly DIBuilder diBuilder
271+ private static void CreateCopyFunctionBody ( DIBuilder diBuilder
272272 , Function copyFunc
273273 , DIFile diFile
274274 , ITypeRef foo
0 commit comments