aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-06-29 18:29:00 +0000
committerGreg Clayton <gclayton@apple.com>2015-06-29 18:29:00 +0000
commit58c65f0243c5118716180dbb50ea7d52c79a1e90 (patch)
tree1c1ecb31016f4ed1871c531aa4e8fa393c7ab8dd /llvm/lib/CodeGen/MachineModuleInfo.cpp
parent55c4ef3e5a48db74b72b069628d64c26d0a8978e (diff)
downloadllvm-58c65f0243c5118716180dbb50ea7d52c79a1e90.zip
llvm-58c65f0243c5118716180dbb50ea7d52c79a1e90.tar.gz
llvm-58c65f0243c5118716180dbb50ea7d52c79a1e90.tar.bz2
Avoid a recursive function call that could run LLDB out of file descriptors in FileSystem::DeleteDirectory(...).
Fixes include: - use FileSystem::Unlink() instead of a direct call to ::unlink(...) when deleting files when iterating through the current directory - save directories from current directory in a list and iterate through those _after_ the current directory has been iterated - Use new FileSpec::ForEachItemInDirectory() instead of manually iterating across directories with opendir()/readdir()/closedir() We should switch all code over to using FileSpec::ForEachItemInDirectory(...) in the near future and get rid of FileSpec::EnumerateDirectory(). This is a follow up patch to: http://reviews.llvm.org/D10787 llvm-svn: 240978
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions