[llvm-commits] [PATCH] New Path API design.
Benjamin Kramer
benny.kra at googlemail.com
Tue Nov 23 13:55:21 PST 2010
On 23.11.2010, at 22:18, Michael Spencer wrote:
> Attached are two patches. The first adds a new unit-test SystemTests
> which has the TimeValue test and a new (empty) path test. The second
> adds include/llvm/System/PathV2.h with documentation and the
> modifications you mentioned.
> error_code root_name(const Twine &path, StringRef &result);
To get the contents of a Twine it has to be rendered to a buffer. Unless we have a global buffer
(and a lot of thread safety issues) we can't return a StringRef to that buffer.
More information about the llvm-commits
mailing list