[llvm] da4ffc6 - Remove some top-level const from return values seen in review
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 7 13:22:30 PDT 2020
Author: David Blaikie
Date: 2020-04-07T13:22:22-07:00
New Revision: da4ffc64e4a13d9d5fea5acff63b24d74a065cef
URL: https://github.com/llvm/llvm-project/commit/da4ffc64e4a13d9d5fea5acff63b24d74a065cef
DIFF: https://github.com/llvm/llvm-project/commit/da4ffc64e4a13d9d5fea5acff63b24d74a065cef.diff
LOG: Remove some top-level const from return values seen in review
Added:
Modified:
llvm/include/llvm/MC/MCSymbolWasm.h
Removed:
################################################################################
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 @@ class MCSymbolWasm : public MCSymbol {
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 @@ class MCSymbolWasm : public MCSymbol {
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 @@ class MCSymbolWasm : public MCSymbol {
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);
}
More information about the llvm-commits
mailing list