diff options
author | Markus Böck <markus.boeck02@gmail.com> | 2021-08-28 15:34:34 +0200 |
---|---|---|
committer | Markus Böck <markus.boeck02@gmail.com> | 2021-08-28 15:37:56 +0200 |
commit | 0235e3c7a6d711d5c1a12c8e7686245bf142627a (patch) | |
tree | 8e1bc2c800444f8da5a74ae62164860f2bb08186 | |
parent | 5294a0f7c3fa1da3f21b787b60dcb28a5912f5c0 (diff) | |
download | llvm-0235e3c7a6d711d5c1a12c8e7686245bf142627a.tar.gz |
[mlir][NFC] Fully qualify default value of Attributes `getStorageType()` in files generated by mlir-tblgen
-rw-r--r-- | mlir/include/mlir/TableGen/Attribute.h | 2 | ||||
-rw-r--r-- | 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; } |