mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-03 09:14:30 +00:00
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:
parent
dfdbebcd1d
commit
540e0f57f5
@ -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,
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user