[codegen] g/c indentation and warns

This commit is contained in:
Vasily Levchenko
2018-02-06 10:09:34 +03:00
committed by Vasily Levchenko
parent a90ba16aed
commit f7af762dad
@@ -1525,7 +1525,7 @@ internal class CodeGeneratorVisitor(val context: Context, val lifetimes: Map<IrE
DICreateReplaceableCompositeType( DICreateReplaceableCompositeType(
tag = DwarfTag.DW_TAG_structure_type.value, tag = DwarfTag.DW_TAG_structure_type.value,
refBuilder = context.debugInfo.builder, refBuilder = context.debugInfo.builder,
refScope = (currentCodeContext.fileScope() as FileScope)!!.file.file() as DIScopeOpaqueRef, refScope = (currentCodeContext.fileScope() as FileScope).file.file() as DIScopeOpaqueRef,
name = clazz.descriptor.typeInfoSymbolName, name = clazz.descriptor.typeInfoSymbolName,
refFile = file().file(), refFile = file().file(),
line = clazz.startLine()) as DITypeOpaqueRef line = clazz.startLine()) as DITypeOpaqueRef
@@ -2422,8 +2422,8 @@ internal class CodeGeneratorVisitor(val context: Context, val lifetimes: Map<IrE
val llvmUsedGlobal = val llvmUsedGlobal =
context.llvm.staticData.placeGlobalArray(name, int8TypePtr, argsCasted) context.llvm.staticData.placeGlobalArray(name, int8TypePtr, argsCasted)
LLVMSetLinkage(llvmUsedGlobal.llvmGlobal, LLVMLinkage.LLVMAppendingLinkage); LLVMSetLinkage(llvmUsedGlobal.llvmGlobal, LLVMLinkage.LLVMAppendingLinkage)
LLVMSetSection(llvmUsedGlobal.llvmGlobal, "llvm.metadata"); LLVMSetSection(llvmUsedGlobal.llvmGlobal, "llvm.metadata")
} }
} }