[LLVMdev] Pass Ordering

aparna kotha kotha.aparna at gmail.com
Fri Aug 13 10:10:13 PDT 2010


I have a ModulePass (A) calling a FunctionPass that inturn calls TargetData
(a ModulePass). For reasons of code correctness and modularity I cannot
reorganize my passes in any other way .

When I use opt to load and run A , it gives the following error.

LLVM ERROR: Bad TargetData ctor used.  Tool did not specify a TargetData to

I gather from some previous emails that this was not supported. Is it still
not supported? and is there any way I can avoid this.

Thanks and Regards

Aparna Kotha

Graduate Student
University of Maryland, College Park
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100813/e8d88b89/attachment.html>

More information about the llvm-dev mailing list