[PATCH] D46962: make GlobalValueSummary::getOriginalName() a const function

Aditya Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 31 08:19:39 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL333659: make GlobalValueSummary::getOriginalName() a const function (authored by hiraditya, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D46962?vs=147122&id=149302#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D46962

Files:
  llvm/trunk/include/llvm/IR/ModuleSummaryIndex.h


Index: llvm/trunk/include/llvm/IR/ModuleSummaryIndex.h
===================================================================
--- llvm/trunk/include/llvm/IR/ModuleSummaryIndex.h
+++ llvm/trunk/include/llvm/IR/ModuleSummaryIndex.h
@@ -296,7 +296,7 @@
 
   /// 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; }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46962.149302.patch
Type: text/x-patch
Size: 653 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180531/41276faa/attachment.bin>


More information about the llvm-commits mailing list