Reduce code duplication.

This also moves strlen out of the mutex scope.

llvm-svn: 106545
1 file changed
tree: 47b68a925aab2a9b013ed6238211722045596c00
  1. clang/
  2. compiler-rt/
  3. libcxx/
  4. lldb/
  5. llvm/