Path: Add an in-place version of path::native.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 11 Sep 2013 10:45:21 +0000 (10:45 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 11 Sep 2013 10:45:21 +0000 (10:45 +0000)
commitf37a324baa7f3893111827f03959fc036da1ed23
treec5bb21098432c9f2475dcab1abb76dc3d721f481
parentece929d6234b73ea248b7a5e89f915613ad748ea
Path: Add an in-place version of path::native.

This reflects the common use case of nativizing a prepared path. The existing
version invokes undefined behavior if input = output, add an assert to catch
that case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190510 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Path.h
lib/Support/Path.cpp