1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[python-bindings] Remove some cruft that snuck in.

llvm-svn: 201966
This commit is contained in:
Michael Gottesman 2014-02-23 04:43:26 +00:00
parent f8dda2f6b3
commit eec992195b

View File

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