llvm.org GIT mirror llvm / ea06d97
[python-bindings] Remove some cruft that snuck in. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201966 91177308-0d34-0410-b5e6-96231b3b80d8 Michael Gottesman 6 years ago
1 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
6969 enum = cls(name, value)
7070 cls._value_map[value] = enum
7171 setattr(cls, name, enum)
72 #print cls, name, value
7372
7473 class Attribute(LLVMEnumeration):
7574 """Represents an individual Attribute enumeration."""
199198 @classmethod
200199 def CreateWithName(cls, module_id):
201200 m = Module(lib.LLVMModuleCreateWithName(module_id))
202 c = Context.GetGlobalContext().take_ownership(m)
201 Context.GetGlobalContext().take_ownership(m)
203202 return m
204203
205204 @property
603602 (RealPredicate, enumerations.RealPredicate),
604603 (LandingPadClauseTy, enumerations.LandingPadClauseTy),
605604 ]
606 s = set([])
607605 for enum_class, enum_spec in enums:
608606 for name, value in enum_spec:
609607 print name, value
611609 return enums
612610
613611 def initialize_llvm():
614 c = Context.GetGlobalContext()
612 Context.GetGlobalContext()
615613 p = PassRegistry()
616614 lib.LLVMInitializeCore(p)
617615 lib.LLVMInitializeTransformUtils(p)