[cfe-dev] Getting LLVM_HOSTTRIPLE or something similar

Jorge Fernández Fabeiro fabeirojorge at gmail.com
Thu Nov 24 04:17:59 PST 2011


Hi!

I'm adapting my code to the latest trunk version of Clang, and I've noticed
that this new version doesn't have anymore the constant LLVM_HOSTTRIPLE,
that represented a triplet for the architecture, vendor and OS of the
machine LLVM has been built.

That's a problem for me, since I'm not generating the LLVM-IR
representation of my code, just doing some source-to-source transformation
and, in my opinion, target info should be irrelevant for my program.
Unfortunately, Clang asks everytime me for an instance of TargetInfo when I
try to instantiate a Preprocessor, and, at least, this TargetInfo must
specify the Triple for the target.

Any solution? Thanks in advance.

Jorge.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111124/04f8e5b3/attachment.html>


More information about the cfe-dev mailing list