diff options
author | Eric Christopher <echristo@gmail.com> | 2013-07-24 01:06:21 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-07-24 01:06:21 +0000 |
commit | e72a4d4843f8f42ac6dfda6511ad6a0a57468077 (patch) | |
tree | 6f13e903578babbad3cb1a0e2de3de3ff4ff2adc /lib/IR/DebugInfo.cpp | |
parent | 78ac65f06b0788f0cd657b2b0af5a0669322932f (diff) | |
download | external_llvm-e72a4d4843f8f42ac6dfda6511ad6a0a57468077.zip external_llvm-e72a4d4843f8f42ac6dfda6511ad6a0a57468077.tar.gz external_llvm-e72a4d4843f8f42ac6dfda6511ad6a0a57468077.tar.bz2 |
More constructor cleanup.
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
Diffstat (limited to 'lib/IR/DebugInfo.cpp')
-rw-r--r-- | lib/IR/DebugInfo.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp index c78b8c2..b99f6d5 100644 --- a/lib/IR/DebugInfo.cpp +++ b/lib/IR/DebugInfo.cpp @@ -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; |