mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 15:10:59 +03:00
"Properties" has been renamed "IntrProperties" in LLVM 3.9
This commit is contained in:
parent
e9b2b46540
commit
0d08bb1d7a
1 changed files with 5 additions and 1 deletions
|
@ -111,7 +111,11 @@ void processRecord(raw_ostream& os, Record& rec, string arch)
|
|||
replace(name.begin(), name.end(), '_', '.');
|
||||
name = string("llvm.") + name;
|
||||
|
||||
#if LDC_LLVM_VER >= 309
|
||||
ListInit* propsList = rec.getValueAsListInit("IntrProperties");
|
||||
#else
|
||||
ListInit* propsList = rec.getValueAsListInit("Properties");
|
||||
#endif
|
||||
string prop =
|
||||
#if LDC_LLVM_VER >= 307
|
||||
propsList->size()
|
||||
|
@ -166,7 +170,7 @@ void processRecord(raw_ostream& os, Record& rec, string arch)
|
|||
for(size_t i = 1; i < params.size(); i++)
|
||||
os << ", " << params[i];
|
||||
|
||||
os << ")" + attributes(rec.getValueAsListInit("Properties")) + ";\n\n";
|
||||
os << ")" + attributes(propsList) + ";\n\n";
|
||||
}
|
||||
|
||||
std::string arch;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue