projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d463d34
)
IR: Remove MDString logic for Value::hasName()
author
Duncan P. N. Exon Smith
<dexonsmith@apple.com>
Fri, 14 Nov 2014 23:58:20 +0000
(23:58 +0000)
committer
Duncan 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
patch
|
blob
|
history
diff --git
a/include/llvm/IR/Value.h
b/include/llvm/IR/Value.h
index efe0cca7bb45fa237ccaf66fb1190194a417e570..6cd38540f25bb3edef02b04683b8967db9d5510b 100644
(file)
--- a/
include/llvm/IR/Value.h
+++ b/
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; }