aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorSriraman Tallam <tmsriram@google.com>2020-06-01 23:17:29 -0700
committerSriraman Tallam <tmsriram@google.com>2020-06-02 00:23:32 -0700
commite0bca46b0854143b2f93b60aac99e669c9776979 (patch)
tree36085eb2e27ac79be88b7ddd1add1552925acd86 /llvm/lib/CodeGen/MachineFunction.cpp
parentfa818ded24413c8b9722dd564b04d9ffc50743b5 (diff)
downloadllvm-e0bca46b0854143b2f93b60aac99e669c9776979.zip
llvm-e0bca46b0854143b2f93b60aac99e669c9776979.tar.gz
llvm-e0bca46b0854143b2f93b60aac99e669c9776979.tar.bz2
Options for Basic Block Sections, enabled in D68063 and D73674.
This patch adds clang options: -fbasic-block-sections={all,<filename>,labels,none} and -funique-basic-block-section-names. LLVM Support for basic block sections is already enabled. + -fbasic-block-sections={all, <file>, labels, none} : Enables/Disables basic block sections for all or a subset of basic blocks. "labels" only enables basic block symbols. + -funique-basic-block-section-names: Enables unique section names for basic block sections, disabled by default. Differential Revision: https://reviews.llvm.org/D68049
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 3cbcf8c..3e57e3c 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -340,7 +340,7 @@ void MachineFunction::RenumberBlocks(MachineBasicBlock *MBB) {
MBBNumbering.resize(BlockNo);
}
-/// This is used with -fbasicblock-sections or -fbasicblock-labels option.
+/// This is used with -fbasic-block-sections or -fbasicblock-labels option.
/// A unary encoding of basic block labels is done to keep ".strtab" sizes
/// small.
void MachineFunction::createBBLabels() {