mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-07 00:23:43 +00:00
Work around MinGW's macro definition of 'interface' to 'struct'
Previous attempts to rename the IBOutletCollection argument to something other than "Interface" were undone (r127127 and r139620). Instead of renaming it, work around this in tablegen, so the public facing getter can have the usual name of 'getInterface'. Fixes PR26682 llvm-svn: 271305
This commit is contained in:
parent
b6d5f0b86f
commit
ebeb0ca80d
@ -194,6 +194,11 @@ namespace {
|
||||
lowerName[0] = std::tolower(lowerName[0]);
|
||||
upperName[0] = std::toupper(upperName[0]);
|
||||
}
|
||||
// Work around MinGW's macro definition of 'interface' to 'struct'. We
|
||||
// have an attribute argument called 'Interface', so only the lower case
|
||||
// name conflicts with the macro definition.
|
||||
if (lowerName == "interface")
|
||||
lowerName = "interface_";
|
||||
}
|
||||
virtual ~Argument() = default;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user