aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-03-08 21:32:10 +0000
committerDevang Patel <dpatel@apple.com>2010-03-08 21:32:10 +0000
commitf17f5ebbdcd67966f7841c3597d750756d5bbd38 (patch)
treed1f31f2de545f5c529573dd4b27205f16cab9030 /lib/Analysis
parent37fad5ce4d81fd459fafe1517d6cd17e7ab49958 (diff)
downloadexternal_llvm-f17f5ebbdcd67966f7841c3597d750756d5bbd38.zip
external_llvm-f17f5ebbdcd67966f7841c3597d750756d5bbd38.tar.gz
external_llvm-f17f5ebbdcd67966f7841c3597d750756d5bbd38.tar.bz2
Remove DbgNode checks in constructor. Debug descriptors are intended to be light weight wrappers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97988 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/DebugInfo.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp
index 98082ff..5e931c6 100644
--- a/lib/Analysis/DebugInfo.cpp
+++ b/lib/Analysis/DebugInfo.cpp
@@ -69,15 +69,6 @@ bool DIDescriptor::ValidDebugInfo(MDNode *N, unsigned OptLevel) {
return true;
}
-DIDescriptor::DIDescriptor(MDNode *N, unsigned RequiredTag) {
- DbgNode = N;
-
- // If this is non-null, check to see if the Tag matches. If not, set to null.
- if (N && getTag() != RequiredTag) {
- DbgNode = 0;
- }
-}
-
StringRef
DIDescriptor::getStringField(unsigned Elt) const {
if (DbgNode == 0)