mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Debug Info: pass in VTableHolder as DIType instead of MDNode *.
Remove one cast and improve readability. No functionality change. llvm-svn: 190225
This commit is contained in:
parent
df8ec492f1
commit
77b027d507
@ -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,
|
||||
|
@ -607,7 +607,7 @@ DICompositeType DIBuilder::createClassType(DIDescriptor Context, StringRef Name,
|
||||
uint64_t OffsetInBits,
|
||||
unsigned Flags, DIType DerivedFrom,
|
||||
DIArray Elements,
|
||||
MDNode *VTableHolder,
|
||||
DIType VTableHolder,
|
||||
MDNode *TemplateParams,
|
||||
StringRef UniqueIdentifier) {
|
||||
assert((!Context || Context.isScope() || Context.isType()) &&
|
||||
@ -626,7 +626,7 @@ DICompositeType DIBuilder::createClassType(DIDescriptor Context, StringRef Name,
|
||||
DerivedFrom,
|
||||
Elements,
|
||||
ConstantInt::get(Type::getInt32Ty(VMContext), 0),
|
||||
DIType(VTableHolder).generateRef(),
|
||||
VTableHolder.generateRef(),
|
||||
TemplateParams,
|
||||
UniqueIdentifier.empty() ? NULL : MDString::get(VMContext, UniqueIdentifier)
|
||||
};
|
||||
@ -647,7 +647,7 @@ DICompositeType DIBuilder::createStructType(DIDescriptor Context,
|
||||
unsigned Flags, DIType DerivedFrom,
|
||||
DIArray Elements,
|
||||
unsigned RunTimeLang,
|
||||
MDNode *VTableHolder,
|
||||
DIType VTableHolder,
|
||||
StringRef UniqueIdentifier) {
|
||||
// TAG_structure_type is encoded in DICompositeType format.
|
||||
Value *Elts[] = {
|
||||
@ -663,7 +663,7 @@ DICompositeType DIBuilder::createStructType(DIDescriptor Context,
|
||||
DerivedFrom,
|
||||
Elements,
|
||||
ConstantInt::get(Type::getInt32Ty(VMContext), RunTimeLang),
|
||||
DIType(VTableHolder).generateRef(),
|
||||
VTableHolder.generateRef(),
|
||||
NULL,
|
||||
UniqueIdentifier.empty() ? NULL : MDString::get(VMContext, UniqueIdentifier)
|
||||
};
|
||||
@ -1104,7 +1104,7 @@ DISubprogram DIBuilder::createMethod(DIDescriptor Context,
|
||||
bool isLocalToUnit,
|
||||
bool isDefinition,
|
||||
unsigned VK, unsigned VIndex,
|
||||
MDNode *VTableHolder,
|
||||
DIType VTableHolder,
|
||||
unsigned Flags,
|
||||
bool isOptimized,
|
||||
Function *Fn,
|
||||
|
Loading…
Reference in New Issue
Block a user