IR: Constify LLVMContext::discardValueNames, NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264823 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2016-03-30 04:32:29 +00:00
parent dfdbebcd1d
commit 540e0f57f5
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -331,7 +331,7 @@ void LLVMContext::deleteGC(const Function &Fn) {
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;