[llvm] r264823 - IR: Constify LLVMContext::discardValueNames, NFC

Duncan P. N. Exon Smith via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 29 21:32:29 PDT 2016


Author: dexonsmith
Date: Tue Mar 29 23:32:29 2016
New Revision: 264823

URL: http://llvm.org/viewvc/llvm-project?rev=264823&view=rev
Log:
IR: Constify LLVMContext::discardValueNames, NFC

Modified:
    llvm/trunk/include/llvm/IR/LLVMContext.h
    llvm/trunk/lib/IR/LLVMContext.cpp

Modified: llvm/trunk/include/llvm/IR/LLVMContext.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/LLVMContext.h?rev=264823&r1=264822&r2=264823&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/LLVMContext.h (original)
+++ llvm/trunk/include/llvm/IR/LLVMContext.h Tue Mar 29 23:32:29 2016
@@ -108,7 +108,7 @@ public:
   /// Return true if the Context runtime configuration is set to discard all
   /// value names. When true, only GlobalValue names will be available in the
   /// IR.
-  bool discardValueNames();
+  bool discardValueNames() const;
 
   /// Set the Context runtime configuration to discard all value name (but
   /// GlobalValue). Clients can use this flag to save memory and runtime,

Modified: llvm/trunk/lib/IR/LLVMContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/LLVMContext.cpp?rev=264823&r1=264822&r2=264823&view=diff
==============================================================================
--- llvm/trunk/lib/IR/LLVMContext.cpp (original)
+++ llvm/trunk/lib/IR/LLVMContext.cpp Tue Mar 29 23:32:29 2016
@@ -331,7 +331,7 @@ void LLVMContext::deleteGC(const Functio
   pImpl->GCNames.erase(&Fn);
 }
 
-bool LLVMContext::discardValueNames() { return pImpl->DiscardValueNames; }
+bool LLVMContext::discardValueNames() const { return pImpl->DiscardValueNames; }
 
 void LLVMContext::setDiscardValueNames(bool Discard) {
   pImpl->DiscardValueNames = Discard;




More information about the llvm-commits mailing list