summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
Commit message (Collapse)AuthorAgeFilesLines
* Fix a signed/unsigned comparison warning.Benjamin Kramer2010-12-281-1/+1
| | | | llvm-svn: 122597
* Support/Path: Deprecate Path::hasMagicNumber and replace all uses with ↵Michael J. Spencer2010-12-281-1/+5
| | | | | | fs::has_magic. llvm-svn: 122589
* Support/PathV2: Implement has_magic.Michael J. Spencer2010-12-281-0/+38
| | | | llvm-svn: 122587
* Support/PathV1: Deprecate GetRootDirectory.Michael J. Spencer2010-12-271-6/+5
| | | | llvm-svn: 122580
* Support/PathV1: Deprecate makeAbsolute and remove Unix impl because it ↵Michael J. Spencer2010-12-251-12/+0
| | | | | | annoys people. llvm-svn: 122553
* Change all self assignments X=X to (void)X, so that we can turn on aJeffrey Yasskin2010-12-232-3/+2
| | | | | | | new gcc warning that complains on self-assignments and self-initializations. llvm-svn: 122458
* Use IntEqClasses to compute connected components of live intervals.Jakob Stoklund Olesen2010-12-211-0/+1
| | | | llvm-svn: 122296
* Add ADT/IntEqClasses.h as a light-weight implementation of EquivalenceClasses.h.Jakob Stoklund Olesen2010-12-212-0/+70
| | | | | | | | | | This implementation already exists as ConnectedVNInfoEqClasses in LiveInterval.cpp, and it seems to be generally useful to have a light-weight way of forming equivalence classes of small integers. IntEqClasses doesn't allow enumeration of the elements in a class. llvm-svn: 122293
* Support/PathV2: Add missing has_relative_path impl.Michael J. Spencer2010-12-201-0/+7
| | | | llvm-svn: 122243
* Add missing standard headers. Patch by Joerg Sonnenberger!Nick Lewycky2010-12-193-0/+3
| | | | llvm-svn: 122193
* Support/PathV1: Deprecate getLast.Michael J. Spencer2010-12-181-1/+1
| | | | llvm-svn: 122116
* PathV2: Use StringRef::substr to simplify substring creation.Benjamin Kramer2010-12-171-27/+17
| | | | llvm-svn: 122085
* Missed some StringRefRefs.Benjamin Kramer2010-12-172-5/+3
| | | | llvm-svn: 122077
* Pass StringRefs by value, for consistency.Benjamin Kramer2010-12-171-13/+13
| | | | llvm-svn: 122074
* Trailing whitespace and 80 column fixups.Jim Grosbach2010-12-171-14/+15
| | | | llvm-svn: 122026
* MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> ↵Michael J. Spencer2010-12-164-48/+50
| | | | | | via an out parm. llvm-svn: 121958
* lib/Support/regexec.c: Let Regex LLP64-aware.NAKAMURA Takumi2010-12-161-2/+3
| | | | | | On LLP64 Win64, 'states1' (for small version) was expanded to 'char *' for large version. Thus small version would be mischosen when nstates > 32 regardless of sizeof(long) on Win64. llvm-svn: 121942
* Support/Windows/PathV2: Fix header comment.Michael J. Spencer2010-12-091-1/+1
| | | | llvm-svn: 121383
* Fix whitespace.Michael J. Spencer2010-12-092-4/+4
| | | | llvm-svn: 121382
* Support: Move c_str from SmallVector back to SmallString and add a free standingMichael J. Spencer2010-12-092-1/+14
| | | | | | templated c_str in Windows.h to replace it. llvm-svn: 121381
* Support/FileSystem: Change file_status predicate functions that cannot fail toMichael J. Spencer2010-12-091-0/+27
| | | | | | | return their result instead of an error_code. Also add some missing predicate functions. llvm-svn: 121380
* Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with ↵Michael J. Spencer2010-12-095-26/+50
| | | | | | error_code &ec. And fix clients. llvm-svn: 121379
* Support: Remove Alarm. It is unused (via local grep and google code search).Michael J. Spencer2010-12-074-151/+0
| | | | llvm-svn: 121160
* Support/PathV2: Remove const from bool return types.Michael J. Spencer2010-12-071-9/+9
| | | | llvm-svn: 121157
* Support/PathV2: Change most functions in the path namespace to return their workMichael J. Spencer2010-12-073-104/+64
| | | | | | via their return value instead of an out parameter. llvm-svn: 121149
* build: Go back to dropping __eprintf reference when building with Clang, seeDaniel Dunbar2010-12-071-0/+5
| | | | | | comment. llvm-svn: 121146
* PR5207: Change APInt methods trunc(), sext(), zext(), sextOrTrunc() andJay Foad2010-12-074-87/+75
| | | | | | | | zextOrTrunc(), and APSInt methods extend(), extOrTrunc() and new method trunc(), to be const and to return a new value instead of modifying the object in place. llvm-svn: 121120
* Don't leak the mutex when loading dynamic libraries.Owen Anderson2010-12-071-12/+5
| | | | llvm-svn: 121119
* Support/PathV2: Cleanup separator handling.Michael J. Spencer2010-12-071-7/+10
| | | | llvm-svn: 121110
* Support/PathV2: Remove the error_code return type from all functions in the pathMichael J. Spencer2010-12-073-95/+65
| | | | | | | namespace. None of them return anything except for success anyway. These will be converted to returning their result soon. llvm-svn: 121109
* Support/PathV2: Move make_absolute from path to fs.Michael J. Spencer2010-12-071-55/+57
| | | | llvm-svn: 121108
* Support/Unix/PathV2: Return the real error from realpath instead of any errorMichael J. Spencer2010-12-071-1/+2
| | | | | | that close or unlink set. llvm-svn: 121094
* Support/Unix/PathV2: Use 0770 instead of 0700 when creating a directory. ↵Michael J. Spencer2010-12-071-1/+1
| | | | | | | | Also use the standard macros instead of octal notation. llvm-svn: 121093
* Support/PathV2: Use SmallVector::clear instead of set_size.Michael J. Spencer2010-12-072-3/+3
| | | | llvm-svn: 121092
* Support/PathV2: Clarify and correct documentation.Michael J. Spencer2010-12-071-0/+5
| | | | llvm-svn: 121091
* Support/PathV2: Move current_path from path to fs and fix the Unix ↵Michael J. Spencer2010-12-073-17/+15
| | | | | | | | implementation. Unix bug spotted by Dan Gohman. llvm-svn: 121090
* Support/Windows: Make MinGW happy.Michael J. Spencer2010-12-062-7/+7
| | | | llvm-svn: 120991
* Support/FileSystem: Add directory_iterator implementation.Michael J. Spencer2010-12-063-3/+94
| | | | llvm-svn: 120989
* Support/PathV2: Fix append to not add a slash to empty or root paths.Michael J. Spencer2010-12-061-1/+1
| | | | llvm-svn: 120988
* Support/Windows: Add ScopedHandle and move some clients over to it.Michael J. Spencer2010-12-062-10/+50
| | | | llvm-svn: 120987
* Silence 'may be used uninitialized in this function' warnings. Static analysisBill Wendling2010-12-041-2/+2
| | | | | | | may determine that they cannot be used uninitialized. But that might be a bit too much for the compiler to determine. llvm-svn: 120916
* Support/PathV2: Remove redundant calls to make_error_code.Michael J. Spencer2010-12-043-102/+101
| | | | llvm-svn: 120913
* APInt: microoptimize a few methods.Benjamin Kramer2010-12-041-4/+0
| | | | llvm-svn: 120912
* Support/FileSystem: Add status implementation.Michael J. Spencer2010-12-043-0/+82
| | | | llvm-svn: 120870
* Support/Windows/FileSystem: Fix MinGW warnings.Michael J. Spencer2010-12-041-6/+6
| | | | llvm-svn: 120868
* Support/FileSystem: Add file_size implementation.Michael J. Spencer2010-12-042-0/+35
| | | | llvm-svn: 120867
* Add IntervalMap::iterator::set{Start,Stop,Value} methods that allow limitedJakob Stoklund Olesen2010-12-031-3/+3
| | | | | | | | | | | editing of the current interval. These methods may cause coalescing, there are corresponding set*Unchecked methods for editing without coalescing. The non-coalescing methods are useful for applying monotonic transforms to all keys or values in a map without accidentally coalescing transformed and untransformed intervals. llvm-svn: 120829
* Support/FileSystem: Add equivalent implementation.Michael J. Spencer2010-12-032-0/+90
| | | | llvm-svn: 120827
* Support/FileSystem: Fix MinGW build. It doesn't have _chsize_s.Michael J. Spencer2010-12-031-0/+4
| | | | llvm-svn: 120826
* And I really hate line endings.Michael J. Spencer2010-12-031-3/+3
| | | | llvm-svn: 120821
OpenPOWER on IntegriCloud