[llvm] r222067 - IR: Remove MDString logic for Value::hasName()
Duncan P. N. Exon Smith
dexonsmith at apple.com
Fri Nov 14 15:58:20 PST 2014
Author: dexonsmith
Date: Fri Nov 14 17:58:20 2014
New Revision: 222067
URL: http://llvm.org/viewvc/llvm-project?rev=222067&view=rev
Log:
IR: Remove MDString logic for Value::hasName()
This isn't necessary after r221960.
Modified:
llvm/trunk/include/llvm/IR/Value.h
Modified: llvm/trunk/include/llvm/IR/Value.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Value.h?rev=222067&r1=222066&r2=222067&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Value.h (original)
+++ llvm/trunk/include/llvm/IR/Value.h Fri Nov 14 17:58:20 2014
@@ -226,7 +226,7 @@ public:
LLVMContext &getContext() const;
// \brief All values can potentially be named.
- bool hasName() const { return Name != nullptr && SubclassID != MDStringVal; }
+ bool hasName() const { return Name != nullptr; }
ValueName *getValueName() const { return Name; }
void setValueName(ValueName *VN) { Name = VN; }
More information about the llvm-commits
mailing list