From: David Blaikie Date: Tue, 7 Apr 2020 20:22:03 +0000 (-0700) Subject: Remove some top-level const from return values seen in review X-Git-Tag: llvmorg-12-init~9759 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da4ffc64e4a13d9d5fea5acff63b24d74a065cef;p=platform%2Fupstream%2Fllvm.git Remove some top-level const from return values seen in review --- diff --git a/llvm/include/llvm/MC/MCSymbolWasm.h b/llvm/include/llvm/MC/MCSymbolWasm.h index e365e07..9c96e7d 100644 --- a/llvm/include/llvm/MC/MCSymbolWasm.h +++ b/llvm/include/llvm/MC/MCSymbolWasm.h @@ -72,7 +72,7 @@ public: void setComdat(bool isComdat) { IsComdat = isComdat; } bool hasImportModule() const { return ImportModule != nullptr; } - const StringRef getImportModule() const { + StringRef getImportModule() const { if (ImportModule) return StringRef(*ImportModule); // Use a default module name of "env" for now, for compatibility with @@ -84,7 +84,7 @@ public: void setImportModule(std::string *Name) { ImportModule = Name; } bool hasImportName() const { return ImportName != nullptr; } - const StringRef getImportName() const { + StringRef getImportName() const { if (ImportName) return StringRef(*ImportName); return getName(); @@ -92,7 +92,7 @@ public: void setImportName(std::string *Name) { ImportName = Name; } bool hasExportName() const { return ExportName != nullptr; } - const StringRef getExportName() const { + StringRef getExportName() const { assert(ExportName); return StringRef(*ExportName); }