mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 00:20:40 +03:00
Update LLVM 6.0 FileCheck and llvm-profdata (#2602)
This commit is contained in:
parent
af4ff423a1
commit
d0215ccf7b
2 changed files with 63 additions and 10 deletions
|
@ -62,6 +62,10 @@ static cl::list<std::string> ImplicitCheckNot(
|
|||
"this pattern occur which are not matched by a positive pattern"),
|
||||
cl::value_desc("pattern"));
|
||||
|
||||
static cl::list<std::string> GlobalDefines("D", cl::Prefix,
|
||||
cl::desc("Define a variable to be used in capture patterns."),
|
||||
cl::value_desc("VAR=VALUE"));
|
||||
|
||||
static cl::opt<bool> AllowEmptyInput(
|
||||
"allow-empty", cl::init(false),
|
||||
cl::desc("Allow the input file to be empty. This is useful when making\n"
|
||||
|
@ -1295,6 +1299,9 @@ bool CheckInput(SourceMgr &SM, StringRef Buffer,
|
|||
/// VariableTable - This holds all the current filecheck variables.
|
||||
StringMap<StringRef> VariableTable;
|
||||
|
||||
for (const auto& Def : GlobalDefines)
|
||||
VariableTable.insert(StringRef(Def).split('='));
|
||||
|
||||
unsigned i = 0, j = 0, e = CheckStrings.size();
|
||||
while (true) {
|
||||
StringRef CheckRegion;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue