diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-11-14 23:58:20 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-11-14 23:58:20 +0000 |
| commit | 62483cb139f1c139449f09d9e0e770caf67ca1ce (patch) | |
| tree | adca5e92077dddb240f9fac2962f1cab3b0573e0 | |
| parent | b8c0feb31e56fe30f999d6a9b246a7a72716f8ea (diff) | |
| download | bcm5719-llvm-62483cb139f1c139449f09d9e0e770caf67ca1ce.tar.gz bcm5719-llvm-62483cb139f1c139449f09d9e0e770caf67ca1ce.zip | |
IR: Remove MDString logic for Value::hasName()
This isn't necessary after r221960.
llvm-svn: 222067
| -rw-r--r-- | llvm/include/llvm/IR/Value.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/IR/Value.h b/llvm/include/llvm/IR/Value.h index efe0cca7bb4..6cd38540f25 100644 --- a/llvm/include/llvm/IR/Value.h +++ b/llvm/include/llvm/IR/Value.h @@ -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; } |

