enum = cls(name, value)
cls._value_map[value] = enum
setattr(cls, name, enum)
- #print cls, name, value
class Attribute(LLVMEnumeration):
"""Represents an individual Attribute enumeration."""
@classmethod
def CreateWithName(cls, module_id):
m = Module(lib.LLVMModuleCreateWithName(module_id))
- c = Context.GetGlobalContext().take_ownership(m)
+ Context.GetGlobalContext().take_ownership(m)
return m
@property
(RealPredicate, enumerations.RealPredicate),
(LandingPadClauseTy, enumerations.LandingPadClauseTy),
]
- s = set([])
for enum_class, enum_spec in enums:
for name, value in enum_spec:
print name, value
return enums
def initialize_llvm():
- c = Context.GetGlobalContext()
+ Context.GetGlobalContext()
p = PassRegistry()
lib.LLVMInitializeCore(p)
lib.LLVMInitializeTransformUtils(p)