IR: Remove MDString logic for Value::hasName()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 14 Nov 2014 23:58:20 +0000 (23:58 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 14 Nov 2014 23:58:20 +0000 (23:58 +0000)
This isn't necessary after r221960.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222067 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Value.h

index efe0cca7bb45fa237ccaf66fb1190194a417e570..6cd38540f25bb3edef02b04683b8967db9d5510b 100644 (file)
@@ -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; }