mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-05 11:27:41 +00:00
Add explicit constructors. Patch by Renato Golin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110072 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
32a9e831c2
commit
5b164b5a5c
@ -36,6 +36,12 @@ namespace llvm {
|
|||||||
class LLVMContext;
|
class LLVMContext;
|
||||||
class raw_ostream;
|
class raw_ostream;
|
||||||
|
|
||||||
|
class DIFile;
|
||||||
|
class DISubprogram;
|
||||||
|
class DILexicalBlock;
|
||||||
|
class DIVariable;
|
||||||
|
class DIType;
|
||||||
|
|
||||||
/// DIDescriptor - A thin wraper around MDNode to access encoded debug info.
|
/// DIDescriptor - A thin wraper around MDNode to access encoded debug info.
|
||||||
/// This should not be stored in a container, because underly MDNode may
|
/// This should not be stored in a container, because underly MDNode may
|
||||||
/// change in certain situations.
|
/// change in certain situations.
|
||||||
@ -61,6 +67,11 @@ namespace llvm {
|
|||||||
public:
|
public:
|
||||||
explicit DIDescriptor() : DbgNode(0) {}
|
explicit DIDescriptor() : DbgNode(0) {}
|
||||||
explicit DIDescriptor(const MDNode *N) : DbgNode(N) {}
|
explicit DIDescriptor(const MDNode *N) : DbgNode(N) {}
|
||||||
|
explicit DIDescriptor(const DIFile F);
|
||||||
|
explicit DIDescriptor(const DISubprogram F);
|
||||||
|
explicit DIDescriptor(const DILexicalBlock F);
|
||||||
|
explicit DIDescriptor(const DIVariable F);
|
||||||
|
explicit DIDescriptor(const DIType F);
|
||||||
|
|
||||||
bool Verify() const { return DbgNode != 0; }
|
bool Verify() const { return DbgNode != 0; }
|
||||||
|
|
||||||
|
@ -32,6 +32,21 @@ using namespace llvm::dwarf;
|
|||||||
// DIDescriptor
|
// DIDescriptor
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
DIDescriptor::DIDescriptor(const DIFile F) : DbgNode(F.DbgNode) {
|
||||||
|
}
|
||||||
|
|
||||||
|
DIDescriptor::DIDescriptor(const DISubprogram F) : DbgNode(F.DbgNode) {
|
||||||
|
}
|
||||||
|
|
||||||
|
DIDescriptor::DIDescriptor(const DILexicalBlock F) : DbgNode(F.DbgNode) {
|
||||||
|
}
|
||||||
|
|
||||||
|
DIDescriptor::DIDescriptor(const DIVariable F) : DbgNode(F.DbgNode) {
|
||||||
|
}
|
||||||
|
|
||||||
|
DIDescriptor::DIDescriptor(const DIType F) : DbgNode(F.DbgNode) {
|
||||||
|
}
|
||||||
|
|
||||||
StringRef
|
StringRef
|
||||||
DIDescriptor::getStringField(unsigned Elt) const {
|
DIDescriptor::getStringField(unsigned Elt) const {
|
||||||
if (DbgNode == 0)
|
if (DbgNode == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user