Skip to content

Commit

Permalink
[python-bindings] Remove some cruft that snuck in.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201966 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
gottesmm committed Feb 23, 2014
1 parent c7ee777 commit ea06d97
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bindings/python/llvm/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def register(cls, name, value):
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."""
Expand Down Expand Up @@ -200,7 +199,7 @@ def __init__(self, module, name=None, context=None):
@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
Expand Down Expand Up @@ -604,15 +603,14 @@ def register_enumerations():
(RealPredicate, enumerations.RealPredicate),
(LandingPadClauseTy, enumerations.LandingPadClauseTy),
]
s = set([])
for enum_class, enum_spec in enums:
for name, value in enum_spec:
print name, value
enum_class.register(name, value)
return enums

def initialize_llvm():
c = Context.GetGlobalContext()
Context.GetGlobalContext()
p = PassRegistry()
lib.LLVMInitializeCore(p)
lib.LLVMInitializeTransformUtils(p)
Expand Down

0 comments on commit ea06d97

Please sign in to comment.