]> granicus.if.org Git - llvm/commitdiff
Change YAML traits for vector<string> to flow_vector.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Fri, 16 Jun 2017 20:50:41 +0000 (20:50 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Fri, 16 Jun 2017 20:50:41 +0000 (20:50 +0000)
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

include/llvm/IR/ModuleSummaryIndexYAML.h
test/Transforms/LowerTypeTests/export-icall.ll

index 8950c527cc1819e0425e116b17643ea5300b4a95..5d7b8b997d37b4e42cecb52a105e282cb086eac5 100644 (file)
@@ -188,7 +188,7 @@ template <> struct MappingTraits<FunctionSummaryYaml> {
 
 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 {
index ad36048993067cc2bdc457d37914e54a8dce0713..f53b63af496caa5808eae07c4ca78c686edaa627 100644 (file)
@@ -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: ...