]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commitdiff
More constructor cleanup.
authorEric Christopher <echristo@gmail.com>
Wed, 24 Jul 2013 01:06:21 +0000 (01:06 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 24 Jul 2013 01:06:21 +0000 (01:06 +0000)
Move to a single constructor with a default argument and avoid
the check and nullification.

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

include/llvm/DebugInfo.h
lib/IR/DebugInfo.cpp

index 39b1e0a7db0418f7995908e04097da1ee054337c..de0eda000d3af0cc8c4b498605e004be1eff36e7 100644 (file)
@@ -209,10 +209,10 @@ namespace llvm {
     void printInternal(raw_ostream &OS) const;
 
   public:
+    DIType(const MDNode *N = 0) : DIScope(N) {}
+
     /// Verify - Verify that a type descriptor is well formed.
     bool Verify() const;
-    explicit DIType(const MDNode *N);
-    explicit DIType() {}
 
     DIScope getContext() const          { return getFieldAs<DIScope>(2); }
     StringRef getName() const           { return getStringField(3);     }
index c78b8c21c8bfe10cadc9d306c172260552c79d30..b99f6d551a0390de8e29207b83ea2a0f41c81b63 100644 (file)
@@ -344,12 +344,6 @@ bool DIDescriptor::isImportedEntity() const {
 // Simple Descriptor Constructors and other Methods
 //===----------------------------------------------------------------------===//
 
-DIType::DIType(const MDNode *N) : DIScope(N) {
-  if (!N) return;
-  if (!isType())
-    DbgNode = 0;
-}
-
 unsigned DIArray::getNumElements() const {
   if (!DbgNode)
     return 0;