Ejemplo n.º 1
0
LLVMMetadataRef LLVMDIBuilderGetOrCreateArray(LLVMDIBuilderRef Dref,
                                              LLVMMetadataRef *Data,
                                              size_t Length) {
  DIBuilder *D = unwrap(Dref);
  Metadata **DataValue = unwrap(Data);
  ArrayRef<Metadata *> Elements(DataValue, Length);
  DIArray A = D->getOrCreateArray(Elements);
  return wrap(A.get());
}
Ejemplo n.º 2
0
void DICompileUnit::replaceGlobalVariables(DIArray GlobalVariables) {
  assert(Verify() && "Expected compile unit");
  getRaw()->replaceGlobalVariables(
      cast_or_null<MDTuple>(GlobalVariables.get()));
}
Ejemplo n.º 3
0
void DICompileUnit::replaceSubprograms(DIArray Subprograms) {
  assert(Verify() && "Expected compile unit");
  getRaw()->replaceSubprograms(cast_or_null<MDTuple>(Subprograms.get()));
}