llvm-6502/lib
Sylvestre Ledru 1a803295d0 Improve the detection of the path
Summary:
When clang is used under GNU/Linux in a chroot without /proc mount, it falls
back on the BSD method. However, since the buf variable is used twice
and fails with snprintf to produce the correct path.

When called as relatived (ie ./clang), it was failing with:
 "" -cc1 [...] -x c++ x.cc
error: unable to execute command: Executable "" doesn't exist!


I also took the opportunity to simply the code (the first arg of test_dir
was useless).

Reviewers: rafael

Reviewed By: rafael

CC: cfe-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D2361

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196791 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-09 16:27:00 +00:00
..
Analysis Don't #include heavy Dominators.h file in LoopInfo.h. This change reduces 2013-12-07 21:20:17 +00:00
AsmParser Debug Info: drop debug info via upgrading path if version number does not match. 2013-12-02 21:29:56 +00:00
Bitcode Remove unused value. 2013-12-07 02:27:52 +00:00
CodeGen Factor out the SchedRemainder/SchedBoundary from GenericScheduler strategy. 2013-12-07 05:59:44 +00:00
DebugInfo DebugInfo: Avoid emitting pubtype entries for type DIEs that just indirect to a type unit. 2013-11-26 00:22:37 +00:00
ExecutionEngine Whitespace cleanups. 2013-12-07 11:21:42 +00:00
IR Add getBitCastOrAddrSpaceCast 2013-12-07 02:58:41 +00:00
IRReader [llvm-c] Expose IRReader interface 2013-11-06 09:21:15 +00:00
Linker Revert "Move copying of global initializers below the cloning of functions." 2013-11-09 00:43:18 +00:00
LTO Remove the isImplicitlyPrivate argument of getNameWithPrefix. 2013-12-05 05:53:12 +00:00
MC Cache AllowAtInIdentifier as class variable in AsmLexer 2013-12-06 23:05:33 +00:00
Object Fix a pair of array index checks. 2013-12-06 02:33:38 +00:00
Option Avoid buffer copies when a Twine already is a StringRef. 2013-12-03 18:18:28 +00:00
Support Improve the detection of the path 2013-12-09 16:27:00 +00:00
TableGen
Target [mips][msa] Fix invalid generated code when lowering FrameIndex involving unaligned offsets. 2013-12-09 12:47:12 +00:00
Transforms Revert 196544 due to internal bot failures. 2013-12-08 20:28:33 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile