1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/tools/llvm-config
Marcello Maggioni cd36fa204a [llvm-config] Fix obviously wrong code in parsing DyLib components.
The code parsing the string was using the offset returned from
StringRef::find() wrong, assuming it was relative to the staring
offset that is passed to the function, but the returned offset
is always relative to the beginning of the line.

This causes odd behaviour while parsing the component string.
Spotted thanks to the newly added test:

tools/llvm-config/booleans.test

llvm-svn: 291803
2017-01-12 19:47:38 +00:00
..
BuildVariables.inc.in [llvm-config] Canonicalize CMake booleans to 0/1 2017-01-10 19:55:51 +00:00
CMakeLists.txt [llvm-config] Canonicalize CMake booleans to 0/1 2017-01-10 19:55:51 +00:00
llvm-config.cpp [llvm-config] Fix obviously wrong code in parsing DyLib components. 2017-01-12 19:47:38 +00:00