| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 120298
|
|
|
|
| |
llvm-svn: 119433
|
|
|
|
|
|
|
| |
Additionally, move the implementation of appendSuffix to Path.cpp: it is
platform-independent.
llvm-svn: 118089
|
|
|
|
|
|
| |
This allows using GetDLLSuffix() with appendSuffix().
llvm-svn: 118051
|
|
|
|
| |
llvm-svn: 114037
|
|
|
|
| |
llvm-svn: 114032
|
|
|
|
| |
llvm-svn: 112587
|
|
|
|
|
|
| |
getMagicNumber() does its own error checking.
llvm-svn: 104851
|
|
|
|
| |
llvm-svn: 91620
|
|
|
|
| |
llvm-svn: 85074
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
forcing them down into various .cpp files.
This change also:
1. Renames TimeValue::toString() and Path::toString() to ::str()
for similarity with the STL.
2. Removes all stream insertion support for sys::Path, forcing
clients to call .str().
3. Removes a use of Config/alloca.h from bugpoint, using smallvector
instead.
4. Weans llvm-db off <iostream>
sys::Path really needs to be gutted, but I don't have the desire to
do it at this point.
llvm-svn: 79869
|
|
|
|
|
|
|
|
| |
- Patch by Viktor Kutuzov!
- Minor tweak by me to add llvm_unreachable calls on FIXMEd error paths.
llvm-svn: 75424
|
|
|
|
|
|
|
|
|
|
|
|
| |
Path.cpp:59: warning: case label value exceeds maximum value for type
magic[0] is a (signed) char, but some case values are unsigned (e.g. 0xde).
When magic[0] was 0xde, the switch has taken the default branch instead of case
0xde branch.
Apparently this was the behaviour with older versions of gcc too, but not with g++.
Now g++-4.4 behaves as gcc, and ignores unsigned case values out of range signed
range.
llvm-svn: 70038
|
|
|
|
| |
llvm-svn: 68663
|
|
|
|
| |
llvm-svn: 53924
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
bc files for modules with a target triple that indicates they are for
darwin. The reader unconditionally handles this, and the writer could
turn this on for more targets if we care.
This change has two benefits for darwin:
1) it allows us to encode the cpu type of the file in an easy to read
place that doesn't require decoding the bc file.
2) it works around a bug (IMO) in darwin's AR where it is incapable of
handling files that are not a multiple of 8 bytes long. BC files
are only guaranteed to be multiples of 4 bytes long.
llvm-svn: 53275
|
|
|
|
| |
llvm-svn: 52775
|
|
|
|
|
|
|
|
|
|
| |
This patch add supports for single architecture mach-o files (the current implementation only support Universal Binary), and solve the signature conflict between java class and Universal Binary magics.
Note that this function will always returned dynamic library for Universal Binaries (like the current implementation) because the binary type is not include in the file header."
Patch by Jean-Daniel Dupas!
llvm-svn: 52766
|
|
|
|
| |
llvm-svn: 52288
|
|
|
|
|
|
|
|
| |
they aren't in the header file, systems with a <string> header file that isn't
64-bit clean shouldn't warn if #including Path.h and specifying
-Wshorten-64-to-32.
llvm-svn: 51393
|
|
|
|
| |
llvm-svn: 50659
|
|
|
|
| |
llvm-svn: 49354
|
|
|
|
| |
llvm-svn: 49352
|
|
|
|
| |
llvm-svn: 47662
|
|
|
|
| |
llvm-svn: 47397
|
|
|
|
| |
llvm-svn: 45781
|
|
|
|
| |
llvm-svn: 45418
|
|
|
|
| |
llvm-svn: 45165
|
|
|
|
|
|
|
| |
files.
bitcode files are the only LLVM format left.
llvm-svn: 37945
|
|
|
|
| |
llvm-svn: 36846
|
|
|
|
| |
llvm-svn: 36681
|
|
|
|
| |
llvm-svn: 35878
|
|
|
|
|
|
|
| |
and Mach-O systems. Additionally, correct the Mach-O logic code to look at
byte 12 not byte 15. Hopefully this fixes the llvm-ld warning on Darwin.
llvm-svn: 35876
|
|
|
|
| |
llvm-svn: 35874
|
|
|
|
|
|
| |
Implement recognition of COFF, ELF and Mach-O object/shared lib files.
llvm-svn: 35650
|
|
|
|
|
|
|
|
|
| |
Put the rest of lib/System into LinkAllVMCore.h. This makes all of
lib/System available to programs that #include LinkALlVMCore.h so that
loadable modules linked into those programs can depend on all of lib/System
being available.
llvm-svn: 29288
|
|
|
|
| |
llvm-svn: 29062
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Get rid of the difference between file paths and directory paths. The Path
class now simply stores a path that can refer to either a file or a
directory. This required various changes in the implementation and interface
of the class with the corresponding impact to its users. Doxygen comments were
also updated to reflect these changes. Interface changes are:
appendDirectory -> appendComponent
appendFile -> appendComponent
elideDirectory -> eraseComponent
elideFile -> eraseComponent
elideSuffix -> eraseSuffix
renameFile -> rename
setDirectory -> set
setFile -> set
Changes pass Dejagnu and llvm-test/SingleSource tests.
llvm-svn: 22349
|
|
|
|
|
|
|
|
|
|
|
| |
Change interface to Path class:
readable -> canRead
writable -> canWrite
executable -> canExecute
More (incremental) changes coming to close 495.
llvm-svn: 22345
|
|
|
|
| |
llvm-svn: 21704
|
|
|
|
| |
llvm-svn: 21422
|
|
|
|
|
|
|
| |
gdb debugger doesn't get confused on which file it is reading (the one in
lib/System or the one in lib/System/{Win32,Unix})
llvm-svn: 19426
|
|
|
|
|
|
|
| |
Use the LLVM_ON_UNIX and LLVM_ON_WIN32 #defines to include the implementation
instead of relying upon the "platform" link
llvm-svn: 19132
|
|
|
|
| |
llvm-svn: 18953
|
|
|
|
|
|
|
|
|
| |
* Fix implementation and documentation about LLVMGCCDIR/bytecode-libs
* Add the makeUnique method, replacement for getUniqueFilename in Support.
* Add the sys::CopyFile function, replacement for CopyFile in Support.
* Move GetLLVMConfigDir() into generic code area since its generic.
llvm-svn: 18947
|
|
|
|
|
|
| |
available.
llvm-svn: 18904
|
|
|
|
|
|
|
|
| |
* Move generic isArchive method here from Unix/Path.cpp \
* Implement isDynamicLibrary \
* Implement FindLibrary for Linker
llvm-svn: 18861
|
|
|
|
| |
llvm-svn: 17806
|
|
|
|
| |
llvm-svn: 17799
|
|
|
|
| |
llvm-svn: 17776
|