Adjust implementation to match new interface.

Patch provided by Morten Ofstad


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17826 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2004-11-15 17:20:28 +00:00
parent 14051812ff
commit abc8650fc0
2 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ static void RegisterHandler() {
}
// RemoveFileOnSignal - The public API
void sys::RemoveFileOnSignal(const std::string &Filename) {
void sys::RemoveFileOnSignal(const sys::Path &Filename) {
RegisterHandler();
if (CleanupExecuted)
@ -81,7 +81,7 @@ void sys::RemoveFileOnSignal(const std::string &Filename) {
if (FilesToRemove == NULL)
FilesToRemove = new std::vector<sys::Path>;
FilesToRemove->push_back(sys::Path(Filename));
FilesToRemove->push_back(sys::Path(Filename.get()));
LeaveCriticalSection(&CriticalSection);
}

View File

@ -72,7 +72,7 @@ static void RegisterHandler() {
}
// RemoveFileOnSignal - The public API
void sys::RemoveFileOnSignal(const std::string &Filename) {
void sys::RemoveFileOnSignal(const sys::Path &Filename) {
RegisterHandler();
if (CleanupExecuted)
@ -81,7 +81,7 @@ void sys::RemoveFileOnSignal(const std::string &Filename) {
if (FilesToRemove == NULL)
FilesToRemove = new std::vector<sys::Path>;
FilesToRemove->push_back(sys::Path(Filename));
FilesToRemove->push_back(sys::Path(Filename.get()));
LeaveCriticalSection(&CriticalSection);
}