mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Update for prototype changes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17781 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eaf181550a
commit
944655922e
@ -134,11 +134,11 @@ void RegisterHandler(int Signal) {
|
|||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
// RemoveFileOnSignal - The public API
|
// RemoveFileOnSignal - The public API
|
||||||
void sys::RemoveFileOnSignal(const std::string &Filename) {
|
void sys::RemoveFileOnSignal(const sys::Path &Filename) {
|
||||||
if (FilesToRemove == 0)
|
if (FilesToRemove == 0)
|
||||||
FilesToRemove = new std::vector<std::string>;
|
FilesToRemove = new std::vector<std::string>;
|
||||||
|
|
||||||
FilesToRemove->push_back(Filename);
|
FilesToRemove->push_back(Filename.get());
|
||||||
|
|
||||||
std::for_each(IntSigs, IntSigsEnd, RegisterHandler);
|
std::for_each(IntSigs, IntSigsEnd, RegisterHandler);
|
||||||
std::for_each(KillSigs, KillSigsEnd, RegisterHandler);
|
std::for_each(KillSigs, KillSigsEnd, RegisterHandler);
|
||||||
|
@ -134,11 +134,11 @@ void RegisterHandler(int Signal) {
|
|||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
// RemoveFileOnSignal - The public API
|
// RemoveFileOnSignal - The public API
|
||||||
void sys::RemoveFileOnSignal(const std::string &Filename) {
|
void sys::RemoveFileOnSignal(const sys::Path &Filename) {
|
||||||
if (FilesToRemove == 0)
|
if (FilesToRemove == 0)
|
||||||
FilesToRemove = new std::vector<std::string>;
|
FilesToRemove = new std::vector<std::string>;
|
||||||
|
|
||||||
FilesToRemove->push_back(Filename);
|
FilesToRemove->push_back(Filename.get());
|
||||||
|
|
||||||
std::for_each(IntSigs, IntSigsEnd, RegisterHandler);
|
std::for_each(IntSigs, IntSigsEnd, RegisterHandler);
|
||||||
std::for_each(KillSigs, KillSigsEnd, RegisterHandler);
|
std::for_each(KillSigs, KillSigsEnd, RegisterHandler);
|
||||||
|
Loading…
Reference in New Issue
Block a user