llvm/tools/bugpoint
David Bozier 05f3b7323d Allow use of spaces in Bugpoint ‘--compile-command’ argument
Bug-Point functionality needs extending due to the patch D29185 by bd1976llvm (Allow llvm's build and test systems to support paths with spaces ). It requires Bugpoint to accept the use of spaces within ‘--compile-command’ tokens.

Details
Bugpoint uses the argument ‘--compile-command’ to pass in a command line argument as a string, the string is tokenized by the ‘lexCommand’ function using spaces as a delimiter. Patch D29185 will cause the unit test compile-custom.ll to fail as spaces are now required within tokens and as a delimiter. This patch allows the use of escape characters as below:

Two consecutive '\' evaluate to a single '\'.
A space after a '\' evaluates to a space that is not interpreted as a delimiter.
Any other instances of the '\' character are removed.

Committed on behalf of Owen Reynolds

Differential revision: https://reviews.llvm.org/D29940



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296763 91177308-0d34-0410-b5e6-96231b3b80d8
2017-03-02 16:50:48 +00:00
..
BugDriver.cpp bugpoint: Return Errors instead of passing around strings 2016-09-06 17:18:22 +00:00
BugDriver.h bugpoint: Return Errors instead of passing around strings 2016-09-06 17:18:22 +00:00
bugpoint.cpp bugpoint: Return Errors instead of passing around strings 2016-09-06 17:18:22 +00:00
CMakeLists.txt [CMake] bugpoint depends on intrinsics_gen 2016-11-18 23:25:30 +00:00
CrashDebugger.cpp Add -strip-nonlinetable-debuginfo capability 2016-10-25 18:44:13 +00:00
ExecutionDriver.cpp Turn cl::values() (for enum) from a vararg function to using C++ variadic template 2016-10-08 19:41:06 +00:00
ExtractFunction.cpp bugpoint: clang-format all of bugpoint. NFC 2016-09-02 01:21:37 +00:00
FindBugs.cpp Remove uses of deprecated std::random_shuffle in the LLVM code base. Reviewed as https://reviews.llvm.org/D29780. 2017-02-16 14:37:03 +00:00
ListReducer.h Remove uses of deprecated std::random_shuffle in the LLVM code base. Reviewed as https://reviews.llvm.org/D29780. 2017-02-16 14:37:03 +00:00
LLVMBuild.txt
Miscompilation.cpp Retire bugpoint's -R. hack. 2016-10-01 07:34:18 +00:00
OptimizerDriver.cpp Split Bitcode/ReaderWriter.h into separate reader and writer headers 2016-11-11 05:34:58 +00:00
ToolRunner.cpp Allow use of spaces in Bugpoint ‘--compile-command’ argument 2017-03-02 16:50:48 +00:00
ToolRunner.h bugpoint: Return Errors instead of passing around strings 2016-09-06 17:18:22 +00:00