diff options
author | Sriraman Tallam <tmsriram@google.com> | 2020-06-01 23:17:29 -0700 |
---|---|---|
committer | Sriraman Tallam <tmsriram@google.com> | 2020-06-02 00:23:32 -0700 |
commit | e0bca46b0854143b2f93b60aac99e669c9776979 (patch) | |
tree | 36085eb2e27ac79be88b7ddd1add1552925acd86 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | fa818ded24413c8b9722dd564b04d9ffc50743b5 (diff) | |
download | llvm-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/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index 68df50f..03254ed 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -879,7 +879,7 @@ MCSection *TargetLoweringObjectFileELF::getSectionForMachineBasicBlock( Name += MBB.getParent()->getName(); } else { Name += MBB.getParent()->getSection()->getName(); - if (TM.getUniqueBBSectionNames()) { + if (TM.getUniqueBasicBlockSectionNames()) { Name += "."; Name += MBB.getSymbol()->getName(); } else { |