diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-02 03:46:17 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-02 03:46:17 +0000 |
commit | 50af49fcdcf7cd48655553441dd25f58c0167c4f (patch) | |
tree | 02e05a520917ec537b6a0fc20ca139e7fb9a3a0f /llvm/lib/IR/Value.cpp | |
parent | c2822bd3d1ea4e8a4dd7107b62299476d19d4587 (diff) | |
download | llvm-50af49fcdcf7cd48655553441dd25f58c0167c4f.zip llvm-50af49fcdcf7cd48655553441dd25f58c0167c4f.tar.gz llvm-50af49fcdcf7cd48655553441dd25f58c0167c4f.tar.bz2 |
Rename Context::discardValueNames() to shouldDiscardValueNames() (NFC)
Suggested by Sean Silva.
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 265211
Diffstat (limited to 'llvm/lib/IR/Value.cpp')
-rw-r--r-- | llvm/lib/IR/Value.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp index ca90b43..468b2a7 100644 --- a/llvm/lib/IR/Value.cpp +++ b/llvm/lib/IR/Value.cpp @@ -199,7 +199,7 @@ StringRef Value::getName() const { void Value::setNameImpl(const Twine &NewName) { // Fast-path: LLVMContext can be set to strip out non-GlobalValue names - if (getContext().discardValueNames() && !isa<GlobalValue>(this)) + if (getContext().shouldDiscardValueNames() && !isa<GlobalValue>(this)) return; // Fast path for common IRBuilder case of setName("") when there is no name. |