1
0
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:
Duncan P. N. Exon Smith 2016-03-30 04:32:29 +00:00
parent a4e51d3329
commit d644811b3a
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;