diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2013-08-16 14:33:07 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2013-08-16 14:33:07 +0000 |
commit | dcd57573d4bd1d9cf92e413822589ee3f45294d9 (patch) | |
tree | 60aae70cffeed8dc5d86f068f2cc63c0c47cede8 /llvm/lib/Support | |
parent | 5c5bdd374d9e634fdccd9c2d6308a6498bc17f80 (diff) | |
download | bcm5719-llvm-dcd57573d4bd1d9cf92e413822589ee3f45294d9.tar.gz bcm5719-llvm-dcd57573d4bd1d9cf92e413822589ee3f45294d9.zip |
Updating function comments; no functional changes intended.
llvm-svn: 188554
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/Windows/Process.inc | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/llvm/lib/Support/Windows/Process.inc b/llvm/lib/Support/Windows/Process.inc index 359b99f5131..e47c4c08c79 100644 --- a/llvm/lib/Support/Windows/Process.inc +++ b/llvm/lib/Support/Windows/Process.inc @@ -130,12 +130,19 @@ int Process::GetCurrentGroupId() } // Some LLVM programs such as bugpoint produce core files as a normal part of -// their operation. To prevent the disk from filling up, this configuration item -// does what's necessary to prevent their generation. +// their operation. To prevent the disk from filling up, this configuration +// item does what's necessary to prevent their generation. void Process::PreventCoreFiles() { - // Windows doesn't do core files, but it does do modal pop-up message - // boxes. As this method is used by bugpoint, preventing these pop-ups - // is the moral equivalent of suppressing core files. + // Windows does have the concept of core files, called minidumps. However, + // disabling minidumps for a particular application extends past the lifetime + // of that application, which is the incorrect behavior for this API. + // Additionally, the APIs require elevated privileges to disable and re- + // enable minidumps, which makes this untenable. For more information, see + // WerAddExcludedApplication and WerRemoveExcludedApplication (Vista and + // later). + // + // Windows also has modal pop-up message boxes. As this method is used by + // bugpoint, preventing these pop-ups is additionally important. SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX); |