[llvm-dev] asm printer pass leaves empty file
Lorenzo Laneve via llvm-dev
llvm-dev at lists.llvm.org
Thu Jul 14 20:50:44 PDT 2016
I’ve used llvm::TargetMachine::addPassesToEmitFile() method to add the Assembly printing passes, but it doesn’t work, cause it leaves my file empty.
It’s weird cause object files are generated successfully with the same configuration. Changing the CGFT to AssemblyFile and the given stream in text mode, Assembly simply doesn’t get printed.
Could it be a bug I should file on bugzilla?
More information about the llvm-dev