diff options
author | David Blaikie <dblaikie@gmail.com> | 2020-04-07 13:22:03 -0700 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2020-04-07 13:22:22 -0700 |
commit | da4ffc64e4a13d9d5fea5acff63b24d74a065cef (patch) | |
tree | 9f227fa5d0b72783c890be3c2b8d75b7e3ecb285 | |
parent | a39b14f0b42d6bd835dec448506660d77bbbb7c7 (diff) |
Remove some top-level const from return values seen in review
-rw-r--r-- | llvm/include/llvm/MC/MCSymbolWasm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/MC/MCSymbolWasm.h b/llvm/include/llvm/MC/MCSymbolWasm.h index e365e079cd8f..9c96e7d86c86 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); } |