[llvm] r333659 - make GlobalValueSummary::getOriginalName() a const function
Aditya Kumar via llvm-commits
llvm-commits at lists.llvm.org
Thu May 31 08:15:33 PDT 2018
Author: hiraditya
Date: Thu May 31 08:15:33 2018
New Revision: 333659
URL: http://llvm.org/viewvc/llvm-project?rev=333659&view=rev
Log:
make GlobalValueSummary::getOriginalName() a const function
Differential Revision: https://reviews.llvm.org/D46962
Reviewers: craig.topper
Modified:
llvm/trunk/include/llvm/IR/ModuleSummaryIndex.h
Modified: llvm/trunk/include/llvm/IR/ModuleSummaryIndex.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/ModuleSummaryIndex.h?rev=333659&r1=333658&r2=333659&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/ModuleSummaryIndex.h (original)
+++ llvm/trunk/include/llvm/IR/ModuleSummaryIndex.h Thu May 31 08:15:33 2018
@@ -296,7 +296,7 @@ public:
/// Returns the hash of the original name, it is identical to the GUID for
/// externally visible symbols, but not for local ones.
- GlobalValue::GUID getOriginalName() { return OriginalName; }
+ GlobalValue::GUID getOriginalName() const { return OriginalName; }
/// Initialize the original name hash in this summary.
void setOriginalName(GlobalValue::GUID Name) { OriginalName = Name; }
More information about the llvm-commits
mailing list