From 0235e3c7a6d711d5c1a12c8e7686245bf142627a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20B=C3=B6ck?= Date: Sat, 28 Aug 2021 15:34:34 +0200 Subject: [mlir][NFC] Fully qualify default value of Attributes `getStorageType()` in files generated by mlir-tblgen --- mlir/include/mlir/TableGen/Attribute.h | 2 +- mlir/lib/TableGen/Attribute.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mlir/include/mlir/TableGen/Attribute.h b/mlir/include/mlir/TableGen/Attribute.h index a8292a982320..579b93846b1c 100644 --- a/mlir/include/mlir/TableGen/Attribute.h +++ b/mlir/include/mlir/TableGen/Attribute.h @@ -50,7 +50,7 @@ public: explicit Attribute(const llvm::DefInit *init); // Returns the storage type if set. Returns the default storage type - // ("Attribute") otherwise. + // ("::mlir::Attribute") otherwise. StringRef getStorageType() const; // Returns the return type for this attribute. diff --git a/mlir/lib/TableGen/Attribute.cpp b/mlir/lib/TableGen/Attribute.cpp index 3b949b0460be..9664eb91b235 100644 --- a/mlir/lib/TableGen/Attribute.cpp +++ b/mlir/lib/TableGen/Attribute.cpp @@ -65,7 +65,7 @@ StringRef Attribute::getStorageType() const { const auto *init = def->getValueInit("storageType"); auto type = getValueAsString(init); if (type.empty()) - return "Attribute"; + return "::mlir::Attribute"; return type; } -- cgit v1.2.1