summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorQuentin Colombet <quentin.colombet@gmail.com>2019-04-29 16:14:00 +0000
committerQuentin Colombet <quentin.colombet@gmail.com>2019-04-29 16:14:00 +0000
commitae2cbb34007d20c1a4e0e0bf0c9408b2df238eea (patch)
tree1342684cb9080acbc9542fb853f11497772fd181 /llvm
parenta25c928302197fe2be937d015c1d09b6d006718a (diff)
downloadbcm5719-llvm-ae2cbb34007d20c1a4e0e0bf0c9408b2df238eea.tar.gz
bcm5719-llvm-ae2cbb34007d20c1a4e0e0bf0c9408b2df238eea.zip
[BlockExtractor] Change the basic block separator from ',' to ';'
This change aims at making the file format be compatible with the way LLVM handles command line options. Differential Revision: https://reviews.llvm.org/D60970 llvm-svn: 359462
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Transforms/IPO/BlockExtractor.cpp2
-rw-r--r--llvm/test/Transforms/BlockExtractor/extract-blocks-with-groups.ll4
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/BlockExtractor.cpp b/llvm/lib/Transforms/IPO/BlockExtractor.cpp
index 31c09ebe43f..5cf2235bbff 100644
--- a/llvm/lib/Transforms/IPO/BlockExtractor.cpp
+++ b/llvm/lib/Transforms/IPO/BlockExtractor.cpp
@@ -94,7 +94,7 @@ void BlockExtractor::loadFile() {
if (LineSplit.empty())
continue;
SmallVector<StringRef, 4> BBNames;
- LineSplit[1].split(BBNames, ',', /*MaxSplit=*/-1,
+ LineSplit[1].split(BBNames, ';', /*MaxSplit=*/-1,
/*KeepEmpty=*/false);
if (BBNames.empty())
report_fatal_error("Missing bbs name");
diff --git a/llvm/test/Transforms/BlockExtractor/extract-blocks-with-groups.ll b/llvm/test/Transforms/BlockExtractor/extract-blocks-with-groups.ll
index 0c5b173c1bf..d23c3f40d7c 100644
--- a/llvm/test/Transforms/BlockExtractor/extract-blocks-with-groups.ll
+++ b/llvm/test/Transforms/BlockExtractor/extract-blocks-with-groups.ll
@@ -1,8 +1,8 @@
; Extract the 'if', 'then', and 'else' blocks into the same function.
-; RUN: echo 'foo if,then,else' > %t
+; RUN: echo 'foo if;then;else' > %t
; Make sure we can still extract a single basic block
; RUN: echo 'foo end' >> %t
-; RUN: echo 'bar bb14,bb20' >> %t
+; RUN: echo 'bar bb14;bb20' >> %t
; RUN: opt -S -extract-blocks -extract-blocks-file=%t %s | FileCheck %s
; CHECK-LABEL: foo
OpenPOWER on IntegriCloud