diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-19 20:40:28 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-19 20:40:28 +0000 |
commit | 7dd76a1088f7285f73152732de50c78b64ee5a03 (patch) | |
tree | 7f94ae5f8f0f362ec332a372df36247d5e55cc6a /include | |
parent | 3fc19bbbbb6b215a7417dfe63c9cb59519bcfde7 (diff) | |
download | llvm-7dd76a1088f7285f73152732de50c78b64ee5a03.tar.gz llvm-7dd76a1088f7285f73152732de50c78b64ee5a03.tar.bz2 llvm-7dd76a1088f7285f73152732de50c78b64ee5a03.tar.xz |
Prefer super class constructor to explicit initialization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82335 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/DebugInfo.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h index ae8cb95c9a..f211be2d49 100644 --- a/include/llvm/Analysis/DebugInfo.h +++ b/include/llvm/Analysis/DebugInfo.h @@ -142,8 +142,7 @@ namespace llvm { /// DICompileUnit - A wrapper for a compile unit. class DICompileUnit : public DIScope { public: - explicit DICompileUnit(MDNode *N = 0) { - DbgNode = N; + explicit DICompileUnit(MDNode *N = 0) : DIScope(N) { if (DbgNode && !isCompileUnit()) DbgNode = 0; } @@ -353,8 +352,7 @@ namespace llvm { /// DISubprogram - This is a wrapper for a subprogram (e.g. a function). class DISubprogram : public DIScope { public: - explicit DISubprogram(MDNode *N = 0) { - DbgNode = N; + explicit DISubprogram(MDNode *N = 0) : DIScope(N) { if (DbgNode && !isSubprogram()) DbgNode = 0; } @@ -459,8 +457,7 @@ namespace llvm { /// DILexicalBlock - This is a wrapper for a lexical block. class DILexicalBlock : public DIScope { public: - explicit DILexicalBlock(MDNode *N = 0) { - DbgNode = N; + explicit DILexicalBlock(MDNode *N = 0) : DIScope(N) { if (DbgNode && !isLexicalBlock()) DbgNode = 0; } @@ -478,7 +475,7 @@ namespace llvm { /// is not associated with any DWARF tag. class DILocation : public DIDescriptor { public: - explicit DILocation(MDNode *L) { DbgNode = L; } + explicit DILocation(MDNode *N) : DIDescriptor(N) { ; } unsigned getLineNumber() const { return getUnsignedField(0); } unsigned getColumnNumber() const { return getUnsignedField(1); } |