- Jul 16, 2013
-
-
Rafael Espindola authored
This centralizes the handling of O_BINARY and opens the way for hiding more differences (like how open behaves with directories). llvm-svn: 186447
-
Rafael Espindola authored
With this change llvm-ar can remove the temporary file on windows too. llvm-svn: 186423
-
Rafael Espindola authored
llvm-svn: 186381
-
Rafael Espindola authored
This is a micro optimization. Instead of going char*->StringRef->Twine->char*, go char*->Twine->char* and avoid having to copy the filename on the stack. llvm-svn: 186380
-
- Jul 13, 2013
-
-
Rafael Espindola authored
Looks like on mingw we get bogus last modification times on directories. Should fix the mingw bots. llvm-svn: 186240
-
Rafael Espindola authored
llvm-svn: 186239
-
Rafael Espindola authored
original message: Fix a off by one error about which members need to use the string table. llvm-svn: 186238
-
Chandler Carruth authored
http://lab.llvm.org:8013/builders/clang-x86_64-darwin11-nobootstrap-RAincremental/builds/4328 Original commit log: Use the function attributes to pass along the stack protector buffer size. llvm-svn: 186234
-
Chandler Carruth authored
http://lab.llvm.org:8011/builders/clang-x86_64-debian-fast/builds/6897/steps/check-all/logs/LLVM%3A%3Aarchive-format.test Original commit log: Fix a off by one error about which members need to use the string table. llvm-svn: 186232
-
Bill Wendling authored
Now that we have robust function attributes, don't use a command line option to specify the stack protecto buffer size. llvm-svn: 186217
-
Rafael Espindola authored
llvm-svn: 186216
-
- Jul 12, 2013
-
-
Rafael Espindola authored
llvm-svn: 186200
-
Rafael Espindola authored
llvm-svn: 186198
-
Rafael Espindola authored
This fixes two bugs is lib/Object that the use in llvm-ar found: * In OS X created archives, the name can be padded with nulls. Strip them. * In the constructor, remember the first non special member and use that in begin_children. This makes sure we skip all special members, not just the first one. The change to llvm-ar itself consist of * Using lib/Object for reading archives instead of ArchiveReader.cpp. * Writing the modified archive directly, instead of creating an in memory representation. The old Archive library was way more general than what is needed, as can be seen by the diffstat of this patch. Having llvm-ar using lib/Object now opens the way for creating regular symbol tables for both native objects and bitcode files so that we can use those archives for LTO. llvm-svn: 186197
-
Rafael Espindola authored
llvm-svn: 186170
-
Benjamin Kramer authored
llvm-svn: 186131
-
- Jul 11, 2013
-
-
Rafael Espindola authored
llvm-svn: 186113
-
Rafael Espindola authored
llvm-svn: 186094
-
Rafael Espindola authored
While at it, use strftime on Unix too and use the thread safe versions of localtime. llvm-svn: 186090
-
Rafael Espindola authored
* It is not present on OS X. * It is untested. * It is not needed for using ar in a build system. llvm-svn: 186080
-
Rafael Espindola authored
llvm-svn: 186079
-
Rafael Espindola authored
* All systems we support have some form of long name support. * The options has different names and semantics in different implementations ('f' on gnu, 'T' on OS X), which makes it unlikely it is normally used on build systems. * It was completely untested. llvm-svn: 186078
-
Rafael Espindola authored
llvm-svn: 186076
-
- Jul 10, 2013
-
-
Rafael Espindola authored
llvm-svn: 186029
-
- Jul 09, 2013
-
-
Bill Wendling authored
The problem with running internalize before we're ready to output an object file is that it may change a 'weak' symbol into an internal one, but that symbol could be needed by an external object file --- e.g. with arclite. <rdar://problem/14334895> llvm-svn: 185882
-
- Jul 08, 2013
-
-
Rafael Espindola authored
No intended functionality change. llvm-svn: 185832
-
Manuel Klimek authored
This fixes a regression introduced by r185726: the new call to get a unique file does not prepend the system temporary directory, so we need to anchor on the file that the temporary file gets moved to to ensure we're on the same file system. llvm-svn: 185825
-
- Jul 06, 2013
-
-
Benjamin Kramer authored
I wish we could typecheck llvm::format. llvm-svn: 185766
-
Michael Gottesman authored
llvm-svn: 185751
-
- Jul 05, 2013
-
-
Rafael Espindola authored
This function is complementary to createTemporaryFile. It handles the case were the unique file is *not* temporary: we will rename it in the end. Since we will rename it, the file has to be in the same filesystem as the final destination and we don't prepend the system temporary directory. This has a small semantic difference from unique_file: the default mode is 0666. This matches the behavior of most unix tools. For example, with this change lld now produces files with the same permissions as ld. I will add a test of this change when I port clang over to createUniqueFile (next commit). llvm-svn: 185726
-
Rafael Espindola authored
llvm-svn: 185719
-
Rafael Espindola authored
llvm-svn: 185697
-
Rafael Espindola authored
llvm-svn: 185695
-
Rafael Espindola authored
parseCommandLine prints and error and exists if no operation is specified, so it never returns NoOperation. llvm-svn: 185691
-
Rafael Espindola authored
We really want bitcode files to behave as regular object files in archives, so we don't need to track that a member is bitcode. llvm-svn: 185681
-
- Jul 03, 2013
-
-
Rafael Espindola authored
This is a small compatibility improvement with gnu nm and makes llvm-nm more useful as a testing tool. llvm-svn: 185546
-
- Jul 02, 2013
-
-
Rafael Espindola authored
This is dead code since PIC16 was removed in 2010. The result was an odd mix, where some parts would carefully pass it along and others would assert it was zero (most of the object streamer for example). llvm-svn: 185436
-
- Jul 01, 2013
-
-
NAKAMURA Takumi authored
FIXME: Could we use llvm::sys::Path here? llvm-svn: 185322
-
Sylvestre Ledru authored
This kind of simplification is sometimes useful, but in general it's not correct. As GNU/kFreeBSD is an hybrid system, for kernel-related issues we want to match the build definitions used for FreeBSD, whereas for userland-related issues we want to match the definitions used for other systems with Glibc. The current modification adjusts the build system so that they can be distinguished, and explicitly adds GNU/kFreeBSD to the build checks in which it belongs. Fixes bug #16444. Patch by Robert Millan in the context of Debian. llvm-svn: 185311
-
- Jun 28, 2013
-
-
Daniel Malea authored
- warn users when -debug-ir is used with old JIT engine (only partial debug info is available) For example, to debug an IR file with GDB (that supports JIT registration), do: $ gdb --args lli -use-mcjit -debug-ir testcase.ll (gdb) break main (gdb) run <Process continues to lli main> (gdb) continue <Process continues to testcase.ll main() (gdb) step <Now stepping through the LLVM IR in testcase.ll> llvm-svn: 185197
-