Skip to content

Commit 6a0e536

Browse files
shkoozero9178
authored andcommitted
[mlir] Fully qualify typenames in SymbolInterfaces.td
Differential Revision: https://reviews.llvm.org/D158305
1 parent b8f191e commit 6a0e536

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mlir/include/mlir/IR/SymbolInterfaces.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def Symbol : OpInterface<"SymbolOpInterface"> {
3131

3232
let methods = [
3333
InterfaceMethod<"Returns the name of this symbol.",
34-
"StringAttr", "getNameAttr", (ins), [{
34+
"::mlir::StringAttr", "getNameAttr", (ins), [{
3535
// Don't rely on the trait implementation as optional symbol operations
3636
// may override this.
3737
return mlir::SymbolTable::getSymbolName($_op);
@@ -178,13 +178,13 @@ def Symbol : OpInterface<"SymbolOpInterface"> {
178178
using Visibility = mlir::SymbolTable::Visibility;
179179

180180
/// Convenience version of `getNameAttr` that returns a StringRef.
181-
StringRef getName() {
181+
::mlir::StringRef getName() {
182182
return getNameAttr().getValue();
183183
}
184184

185185
/// Convenience version of `setName` that take a StringRef.
186-
void setName(StringRef name) {
187-
setName(StringAttr::get($_op->getContext(), name));
186+
void setName(::mlir::StringRef name) {
187+
setName(::mlir::StringAttr::get($_op->getContext(), name));
188188
}
189189
}];
190190

0 commit comments

Comments
 (0)