forked from OSchip/llvm-project
make GlobalValueSummary::getOriginalName() a const function
Differential Revision: https://reviews.llvm.org/D46962 Reviewers: craig.topper llvm-svn: 333659
This commit is contained in:
parent
2911b3a07a
commit
7ef72ded57
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue