mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
Whitespace and 80-col.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138654 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9ab0f25fc1
commit
6c0046f5d4
@ -30,7 +30,8 @@ static Constant *GetTagConstant(LLVMContext &VMContext, unsigned Tag) {
|
||||
|
||||
DIBuilder::DIBuilder(Module &m)
|
||||
: M(m), VMContext(M.getContext()), TheCU(0), TempEnumTypes(0),
|
||||
TempRetainTypes(0), TempSubprograms(0), TempGVs(0), DeclareFn(0), ValueFn(0)
|
||||
TempRetainTypes(0), TempSubprograms(0), TempGVs(0), DeclareFn(0),
|
||||
ValueFn(0)
|
||||
{}
|
||||
|
||||
/// finalize - Construct any deferred debug info descriptors.
|
||||
@ -61,7 +62,8 @@ void DIBuilder::finalize() {
|
||||
DIType(TempGVs).replaceAllUsesWith(GVs);
|
||||
}
|
||||
|
||||
/// getNonCompileUnitScope - If N is compile unit return NULL otherwise return N.
|
||||
/// getNonCompileUnitScope - If N is compile unit return NULL otherwise return
|
||||
/// N.
|
||||
static MDNode *getNonCompileUnitScope(MDNode *N) {
|
||||
if (DIDescriptor(N).isCompileUnit())
|
||||
return NULL;
|
||||
@ -203,7 +205,7 @@ DIType DIBuilder::createReferenceType(DIType RTy) {
|
||||
// References are encoded in DIDerivedType format.
|
||||
Value *Elts[] = {
|
||||
GetTagConstant(VMContext, dwarf::DW_TAG_reference_type),
|
||||
NULL, //TheCU,
|
||||
NULL, // TheCU,
|
||||
NULL, // Name
|
||||
NULL, // Filename
|
||||
ConstantInt::get(Type::getInt32Ty(VMContext), 0), // Line
|
||||
@ -468,7 +470,8 @@ DIType DIBuilder::createSubroutineType(DIFile File, DIArray ParameterTypes) {
|
||||
DIType DIBuilder::createEnumerationType(DIDescriptor Scope, StringRef Name,
|
||||
DIFile File, unsigned LineNumber,
|
||||
uint64_t SizeInBits,
|
||||
uint64_t AlignInBits, DIArray Elements) {
|
||||
uint64_t AlignInBits,
|
||||
DIArray Elements) {
|
||||
// TAG_enumeration_type is encoded in DICompositeType format.
|
||||
Value *Elts[] = {
|
||||
GetTagConstant(VMContext, dwarf::DW_TAG_enumeration_type),
|
||||
@ -705,7 +708,8 @@ DIVariable DIBuilder::createComplexVariable(unsigned Tag, DIDescriptor Scope,
|
||||
Elts.push_back(getNonCompileUnitScope(Scope)),
|
||||
Elts.push_back(MDString::get(VMContext, Name));
|
||||
Elts.push_back(F);
|
||||
Elts.push_back(ConstantInt::get(Type::getInt32Ty(VMContext), (LineNo | (ArgNo << 24))));
|
||||
Elts.push_back(ConstantInt::get(Type::getInt32Ty(VMContext),
|
||||
(LineNo | (ArgNo << 24))));
|
||||
Elts.push_back(Ty);
|
||||
Elts.push_back(llvm::Constant::getNullValue(Type::getInt32Ty(VMContext)));
|
||||
Elts.push_back(llvm::Constant::getNullValue(Type::getInt32Ty(VMContext)));
|
||||
@ -892,4 +896,3 @@ Instruction *DIBuilder::insertDbgValueIntrinsic(Value *V, uint64_t Offset,
|
||||
VarInfo };
|
||||
return CallInst::Create(ValueFn, Args, "", InsertAtEnd);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user