From: Evgeniy Stepanov Date: Fri, 16 Jun 2017 20:50:41 +0000 (+0000) Subject: Change YAML traits for vector to flow_vector. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e9eb0b85927b745bdbc7ce7870e13db8cc81ed4a;p=llvm Change YAML traits for vector to flow_vector. This is a workaround for an ODR conflict with the definition in AMDGPUCodeObjectMetadata.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305584 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/ModuleSummaryIndexYAML.h b/include/llvm/IR/ModuleSummaryIndexYAML.h index 8950c527cc1..5d7b8b997d3 100644 --- a/include/llvm/IR/ModuleSummaryIndexYAML.h +++ b/include/llvm/IR/ModuleSummaryIndexYAML.h @@ -188,7 +188,7 @@ template <> struct MappingTraits { LLVM_YAML_IS_STRING_MAP(TypeIdSummary) LLVM_YAML_IS_SEQUENCE_VECTOR(FunctionSummaryYaml) -LLVM_YAML_IS_SEQUENCE_VECTOR(std::string) +LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR(std::string) namespace llvm { namespace yaml { diff --git a/test/Transforms/LowerTypeTests/export-icall.ll b/test/Transforms/LowerTypeTests/export-icall.ll index ad360489930..f53b63af496 100644 --- a/test/Transforms/LowerTypeTests/export-icall.ll +++ b/test/Transforms/LowerTypeTests/export-icall.ll @@ -60,11 +60,6 @@ declare !type !8 void @f(i32 %x) ; SUMMARY-NEXT: SizeM1BitWidth: 0 ; SUMMARY-NEXT: WPDRes: -; SUMMARY: CfiFunctionDefs: -; SUMMARY-NEXT: - f -; SUMMARY-NEXT: - g -; SUMMARY-NEXT: - h -; SUMMARY-NEXT: CfiFunctionDecls: -; SUMMARY-NEXT: - external -; SUMMARY-NEXT: - external_weak +; SUMMARY: CfiFunctionDefs: [ f, g, h ] +; SUMMARY-NEXT: CfiFunctionDecls: [ external, external_weak ] ; SUMMARY-NEXT: ...