[cfe-dev] Using the LLVM path and directory system

chris nuernberger cnuernber at gmail.com
Fri Jun 17 09:58:05 PDT 2011


Hey guys,

I have written a small code generator that we are using, quite
happily, based on clang.  I need to make its output more robust and
thus I would like to create the destination directories if they don't
exist.  I am looking through llvm/support/PathV2 and it has a
create_directories function call *but* it takes a twine and I start
with paths.

Is there an llvm-ish way to go from my string paths to twines?  It
wasn't clear to me how to do this without doing the manual and
possibly platform specific string parsing myself.

Chris

-- 
A foolish consistency is the hobgoblin of little minds - Emerson



More information about the cfe-dev mailing list