[TableGen] Call llvm_shutdown on exit so that all the ManagedStatic objects in the...
[oota-llvm.git] / utils / DSAextract.py
index de82b5556b5d60a26f11a19605d8c412e671b394..89dece1f3339419048cdbf05bc1838c184c66f5d 100644 (file)
@@ -58,7 +58,7 @@ node_set = set()
 #read the file one line at a time
 buffer = input.readline()
 while buffer != '':
-       #filter out the unecessary checks on all the edge lines
+       #filter out the unnecessary checks on all the edge lines
        if not arrowexp.search(buffer):
                #check to see if this is a node we are looking for
                for regexp in regexp_list:
@@ -66,6 +66,7 @@ while buffer != '':
                        #for the node (it will be Node(hex number)) to our set of nodes
                        if regexp.search(buffer):
                                node_set |= set([re.split('\s+',buffer,2)[1]])
+                               break
        buffer = input.readline()