0

Is there any way to execute linux commands in llvm pass and parse the objdump in it.

For example in python we can do as follows:

os.system('gcc example.c -o example') 
os.system('objdump -o example > parsed.txt')

and parse it by using regular expression.So, similarly can we do it in llvm pass as well?

sephora
  • 21
  • 1
  • 7
  • You could call out to the system using any normal C/C++ system programming tools, but that would probably be considered "weird". What are you actually trying to accomplish? – echristo Dec 14 '16 at 16:22
  • @echristo - It's for my project, already I have an llvm pass, so I have to create another llvm pass so that I can call system () to execute the old llvm pass from the new llvm pass and then parse the object file of it.So can i use getAnalysisUsage() to do this? – sephora Dec 15 '16 at 15:07
  • You should just add you new pass to the pass pipeline like you did with your previous pass. – echristo Jan 03 '17 at 06:35

0 Answers0