summaryrefslogtreecommitdiff
path: root/bindings/python
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2014-02-23 04:43:26 +0000
committerMichael Gottesman <mgottesman@apple.com>2014-02-23 04:43:26 +0000
commitea06d9762c25635338ea91a9b0d2c192b3727bf4 (patch)
treec4a6de118b57f8438631a05cac9da45414201eeb /bindings/python
parentc7ee77714925ef2f5d5ce7c2cbb0f39171abc9ae (diff)
[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
Diffstat (limited to 'bindings/python')
-rw-r--r--bindings/python/llvm/core.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/bindings/python/llvm/core.py b/bindings/python/llvm/core.py
index e8bfab8445f..c95952db6fc 100644
--- a/bindings/python/llvm/core.py
+++ b/bindings/python/llvm/core.py
@@ -70,7 +70,6 @@ class LLVMEnumeration(object):
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."""
@@ -200,7 +199,7 @@ class Module(LLVMObject):
@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
@@ -604,7 +603,6 @@ 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
@@ -612,7 +610,7 @@ def register_enumerations():
return enums
def initialize_llvm():
- c = Context.GetGlobalContext()
+ Context.GetGlobalContext()
p = PassRegistry()
lib.LLVMInitializeCore(p)
lib.LLVMInitializeTransformUtils(p)