Table of Contents

Method Comdat

Namespace
Ubiquity.NET.Llvm.Values
Assembly
Ubiquity.NET.Llvm.dll

Comdat(GlobalObject, string)

Sets a named Comdat for a GlobalObject

public static GlobalObject Comdat(this GlobalObject self, string name)

Parameters

self GlobalObject

Global to get the Comdat for

name string

name of the ComDat

Returns

GlobalObject

self for fluent use

Remarks

This finds a Comdat in the ParentModule of the object if it exists or creates a new one if it doesn't and assigns the Comdat property with the Comdat.

Comdat(GlobalObject, string, ComdatKind)

Sets a named Comdat for a GlobalObject

public static GlobalObject Comdat(this GlobalObject self, string name, ComdatKind kind)

Parameters

self GlobalObject

Global to get the Comdat for

name string

name of the Comdat

kind ComdatKind

Id of Comdat to create if it doesn't exist already

Returns

GlobalObject

self for fluent use

Remarks

This finds a Comdat in the ParentModule of the object if it exists or creates a new one if it doesn't and assigns the Comdat property with the Comdat.

See Also