summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Support/Windows/FileSystem: Fix MinGW build.Michael J. Spencer2010-12-031-0/+6
| | | | llvm-svn: 120820
* Support/FileSystem: Add resize_file implementation.Michael J. Spencer2010-12-032-0/+29
| | | | llvm-svn: 120819
* Support/FileSystem: Add rename implementation.Michael J. Spencer2010-12-032-0/+32
| | | | llvm-svn: 120818
* Support/FileSystem: Add remove implementation.Michael J. Spencer2010-12-032-0/+33
| | | | llvm-svn: 120817
* Fix line endings.Michael J. Spencer2010-12-031-6/+6
| | | | llvm-svn: 120816
* Apparently OS X 10.4 doesn't have __crashreporter_info__.Eric Christopher2010-12-031-5/+5
| | | | | | Try to fix building on the wayback machine. llvm-svn: 120801
* Support/FileSystem: Add create_symlink implementation.Michael J. Spencer2010-12-032-0/+45
| | | | llvm-svn: 120800
* Support/FileSystem: Add create_hard_link implementation.Michael J. Spencer2010-12-032-0/+32
| | | | llvm-svn: 120792
* Support/ADT/Twine: Make toNullTerminatedStringRef not rely on UB :(.Michael J. Spencer2010-12-031-4/+12
| | | | llvm-svn: 120791
* Support/FileSystem: Add create_director{y,ies} implementations.Michael J. Spencer2010-12-033-0/+49
| | | | llvm-svn: 120790
* Support/Windows/FileSystem: Remove unneeded toNullTerminatedStringRef.Michael J. Spencer2010-12-031-2/+2
| | | | llvm-svn: 120777
* Support/FileSystem: Add unique_file and exists implementations.Michael J. Spencer2010-12-033-2/+334
| | | | llvm-svn: 120776
* Support/FileSystem: Fix copy_file implementation to use ↵Michael J. Spencer2010-12-012-4/+4
| | | | | | | | toNullTerminatedStringRef instead of toStringRef. The file system APIs need c strings. llvm-svn: 120601
* Support/ADT/Twine: Add toNullTerminatedStringRef.Michael J. Spencer2010-12-011-0/+12
| | | | llvm-svn: 120600
* Support/FileSystem: Add copy_file implementation. Not tests yet because theMichael J. Spencer2010-12-013-3/+157
| | | | | | file creation APIs aren't implemented. llvm-svn: 120593
* PR5207: Rename overloaded APInt methods set(), clear(), flip() toJay Foad2010-12-011-13/+13
| | | | | | setAllBits(), setBit(unsigned), etc. llvm-svn: 120564
* Support/PathV2: Add is_{absolute,relative} implementation.Michael J. Spencer2010-12-011-0/+24
| | | | llvm-svn: 120560
* Support/PathV2: Add ↵Michael J. Spencer2010-12-011-18/+70
| | | | | | has_{root_path,root_name,root_directory,parent_path,filename,stem,extension} implementation. llvm-svn: 120559
* Support/PathV2: Add extension implementation.Michael J. Spencer2010-12-011-0/+16
| | | | llvm-svn: 120550
OpenPOWER on IntegriCloud