[LLVMdev] [lld] Handling a whole bunch of readers

Shankar Easwaran shankare at codeaurora.org
Wed Oct 9 11:23:58 PDT 2013


Hi,

We have a whole bunch of readers(we would have some more too), and was 
thinking if we should have a vector of Readers, and have a function 
isMyFormat in each of them.

Any reader that knows to handle, goes ahead and parses the file.

On a side note, we currently use .objtxt as an figure out if the file is 
a YAML file or not. I have added FIXME's in the code, if we could some 
kind of magic (or) a better way to figure out if the file is YAML ?

Thanks

Shankar Easwaran

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation




More information about the llvm-dev mailing list