asan_symbolize.py: use llvm-symbolizer results even if it returned function name...
[blocksruntime.git] / make / filter-inputs
blob8a6bbe2abdc9cf4e8bf26d211b8bb04c6b3129af
1 #!/usr/bin/env python
3 #===- make/filter-inputs ---------------------------------------------------===#
5 # The LLVM Compiler Infrastructure
7 # This file is distributed under the University of Illinois Open Source
8 # License. See LICENSE.TXT for details.
10 #===------------------------------------------------------------------------===#
12 # Given a list of files, return a new list of files taking only the
13 # first file for any particular filename.
14 def main():
15 import os,sys
17 seen = set()
18 for file in sys.argv[1:]:
19 base = os.path.basename(file)
20 if base not in seen:
21 seen.add(base)
22 print file
24 if __name__ == '__main__':
25 main()