mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
IR: Constify LLVMContext::discardValueNames, NFC
llvm-svn: 264823
This commit is contained in:
parent
a4e51d3329
commit
d644811b3a
@ -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…
Reference in New Issue
Block a user