summaryrefslogtreecommitdiffstats
path: root/include/llvm/DIBuilder.h
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-09-06 23:54:23 +0000
committerManman Ren <manman.ren@gmail.com>2013-09-06 23:54:23 +0000
commit8b56ca61e1f174d08d78f5aab3c83633c48af3a5 (patch)
tree15228d50826580f8e924099873835962e9588c8c /include/llvm/DIBuilder.h
parent997c5dead83fc237280888696e1fa719563fc7f1 (diff)
downloadexternal_llvm-8b56ca61e1f174d08d78f5aab3c83633c48af3a5.zip
external_llvm-8b56ca61e1f174d08d78f5aab3c83633c48af3a5.tar.gz
external_llvm-8b56ca61e1f174d08d78f5aab3c83633c48af3a5.tar.bz2
Debug Info: pass in VTableHolder as DIType instead of MDNode *.
Remove one cast and improve readability. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190225 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/DIBuilder.h')
-rw-r--r--include/llvm/DIBuilder.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/DIBuilder.h b/include/llvm/DIBuilder.h
index d4dfadc..39ff317 100644
--- a/include/llvm/DIBuilder.h
+++ b/include/llvm/DIBuilder.h
@@ -17,6 +17,7 @@
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringRef.h"
+#include "llvm/DebugInfo.h"
#include "llvm/Support/DataTypes.h"
#include "llvm/Support/ValueHandle.h"
@@ -288,7 +289,7 @@ namespace llvm {
uint64_t SizeInBits, uint64_t AlignInBits,
uint64_t OffsetInBits, unsigned Flags,
DIType DerivedFrom, DIArray Elements,
- MDNode *VTableHolder = 0,
+ DIType VTableHolder = NULL,
MDNode *TemplateParms = 0,
StringRef UniqueIdentifier = StringRef());
@@ -308,7 +309,7 @@ namespace llvm {
uint64_t SizeInBits, uint64_t AlignInBits,
unsigned Flags, DIType DerivedFrom,
DIArray Elements, unsigned RunTimeLang = 0,
- MDNode *VTableHolder = 0,
+ DIType VTableHolder = NULL,
StringRef UniqueIdentifier = StringRef());
/// createUnionType - Create debugging information entry for an union.
@@ -586,7 +587,7 @@ namespace llvm {
DICompositeType Ty, bool isLocalToUnit,
bool isDefinition,
unsigned Virtuality = 0, unsigned VTableIndex = 0,
- MDNode *VTableHolder = 0,
+ DIType VTableHolder = NULL,
unsigned Flags = 0,
bool isOptimized = false,
Function *Fn = 0,