mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 15:41:46 +00:00
[mlir] ODS: do not emit trailing const for static methods
The generated C++ would be invalid. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D104233
This commit is contained in:
parent
69cfa178b7
commit
8ed8855958
@ -325,7 +325,7 @@ void InterfaceGenerator::emitTraitDecl(Interface &interface,
|
||||
os << " " << (method.isStatic() ? "static " : "");
|
||||
emitCPPType(method.getReturnType(), os);
|
||||
emitMethodNameAndArgs(method, os, valueType, /*addThisArg=*/false,
|
||||
/*addConst=*/!isOpInterface);
|
||||
/*addConst=*/!isOpInterface && !method.isStatic());
|
||||
os << " {\n " << tblgen::tgfmt(defaultImpl->trim(), &traitMethodFmt)
|
||||
<< "\n }\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user