- Aug 20, 2010
-
-
Benjamin Kramer authored
llvm-svn: 111669
-
Dan Gohman authored
llvm-svn: 111661
-
Dan Gohman authored
pending output errors are detected. llvm-svn: 111643
-
Dan Gohman authored
outside of outs() and errs() themselves, and they don't really need custom classes. llvm-svn: 111642
-
Dan Gohman authored
class which is using it. llvm-svn: 111639
-
Dan Gohman authored
functionality that most command-line tools need: ensuring that the output file gets deleted if the tool is interrupted or encounters an error. llvm-svn: 111595
-
- Aug 19, 2010
-
-
Dale Johannesen authored
llvm-svn: 111534
-
Dan Gohman authored
constructed with an output filename of "-". In particular, allow the file descriptor to be closed, and close the file descriptor in the destructor if it hasn't been explicitly closed already, to ensure that any write errors are detected. llvm-svn: 111436
-
Dan Gohman authored
llvm-svn: 111432
-
- Aug 18, 2010
-
-
Dan Gohman authored
llvm-svn: 111339
-
Chris Lattner authored
llvm-svn: 111337
-
Chris Lattner authored
llvm-svn: 111325
-
rdar://8318441Chris Lattner authored
(e.g. errs()) fails in close() due to (e.g.) a broken pipe. As previously written, the had_error() flag would get set and then the raw_ostream dtor would report a fatal error. There is nothing the client can do about this and we have no way to report the error, so just eat it. llvm-svn: 111321
-
Chris Lattner authored
into report_fatal_error. Just blast the string to stderr with write(2) and hope for the best! Part of rdar://8318441 llvm-svn: 111320
-
Daniel Dunbar authored
CrashRecovery: Clear the current context on the first crash, to avoid re-entering it if the cleanup code crashes. llvm-svn: 111309
-
Daniel Dunbar authored
CrashRecovery: Add CrashRecoveryContext::GetCurrent(), so clients can find the active context from anywhere. llvm-svn: 111308
-
Daniel Dunbar authored
llvm-svn: 111307
-
- Aug 17, 2010
-
-
Jim Grosbach authored
llvm-svn: 111254
-
- Aug 16, 2010
-
-
Dan Gohman authored
implementations of equality comparison and hash computation. This can be used to optimize node lookup by avoiding creating lots of temporary ID values just for hashing and comparison purposes. llvm-svn: 111130
-
Dan Gohman authored
with FoldingSetTrait::Profile. llvm-svn: 111127
-
- Aug 12, 2010
-
-
Duncan Sands authored
target triple and straightens it out. This does less than gcc's script config.sub, for example it turns i386-mingw32 into i386--mingw32 not i386-pc-mingw32, but it does a decent job of turning funky triples into something that the rest of the Triple class can understand. The plan is to use this to canonicalize triple's when they are first provided by users, and have the rest of LLVM only deal with canonical triples. Once this is done the special case workarounds in the Triple constructor can be removed, making the class more regular and easier to use. The comments and unittests for the Triple class are already adjusted in this patch appropriately for this brave new world of increased uniformity. llvm-svn: 110909
-
Nick Lewycky authored
- remove ashr which never worked. - fix lshr and shl and add tests. - remove dead function "intersect1Wrapped". - add a new sub method to subtract ranges, with test. llvm-svn: 110861
-
- Aug 08, 2010
-
-
Eric Christopher authored
llvm-svn: 110527
-
- Aug 07, 2010
-
-
Benjamin Kramer authored
llvm-svn: 110518
-
Benjamin Kramer authored
llvm-svn: 110516
-
Owen Anderson authored
llvm-svn: 110505
-
Owen Anderson authored
llvm-svn: 110504
-
Owen Anderson authored
llvm-svn: 110493
-
- Aug 03, 2010
-
-
Chris Lattner authored
llvm-svn: 110114
-
- Jul 30, 2010
-
-
Daniel Dunbar authored
llvm-svn: 109872
-
- Jul 29, 2010
-
-
Daniel Dunbar authored
llvm-svn: 109752
-
Daniel Dunbar authored
llvm-svn: 109721
-
Daniel Dunbar authored
- This works, but won't handle crashes on stack overflow, or signals delivered to a thread other than the one that crashed. The latter is particular annoying on Darwin, because SIGABRT tends to go to the main thread. llvm-svn: 109717
-
- Jul 28, 2010
-
-
Douglas Gregor authored
llvm-svn: 109598
-
Daniel Dunbar authored
- Designed as a simple wrapper to allow clients to attempt to catch crashes (memory errors, assertion violations, etc.) and do some kind of recovery. - Currently doesn't actually attempt to catch crashes. llvm-svn: 109586
-
- Jul 15, 2010
-
-
Benjamin Kramer authored
llvm-svn: 108366
-
- Jul 07, 2010
-
-
Chris Lattner authored
llvm-svn: 107785
-
- Jun 30, 2010
-
-
Duncan Sands authored
replaced by a bigger array in SmallPtrSet (by overridding it), instead just use a pointer to the start of the storage, and have SmallPtrSet pass in the value to use. This has the disadvantage that SmallPtrSet becomes bigger by one pointer. It has the advantage that it no longer uses tricky C++ rules, and is clearly correct while I'm not sure the previous version was. This was inspired by g++-4.6 pointing out that SmallPtrSetImpl was writing off the end of SmallArray, which it was. Since SmallArray is replaced with a bigger array in SmallPtrSet, the write was still to valid memory. But it was writing off the end of the declared array type - sounds kind of dubious to me, like it sounded dubious to g++-4.6. Maybe g++-4.6 is wrong and this construct is perfectly valid and correctly compiled by all compilers, but I think it is better to avoid the whole can of worms by avoiding this construct. llvm-svn: 107285
-
- Jun 28, 2010
-
-
Eric Christopher authored
llvm-svn: 107042
-
Eric Christopher authored
Remove library check and regenerate configure. llvm-svn: 107028
-