aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2020-04-15 15:49:05 -0700
committerFangrui Song <maskray@google.com>2020-04-15 16:48:14 -0700
commit7d1ff446b6ad94560e87900c11370de12c734282 (patch)
tree0fc7148fbbc2a2a8a9cbc7d505dd315ba3c15b19 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent937025757c871c6caa62ec1858390a340e3ab526 (diff)
downloadllvm-7d1ff446b6ad94560e87900c11370de12c734282.zip
llvm-7d1ff446b6ad94560e87900c11370de12c734282.tar.gz
llvm-7d1ff446b6ad94560e87900c11370de12c734282.tar.bz2
[MC] Rename MCSection*::getSectionName() to getName(). NFC
A pending change will merge MCSection*::getName() to MCSection::getName().
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index f4d74ff..0acea08 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -771,8 +771,8 @@ MCSection *TargetLoweringObjectFileELF::getSectionForMachineBasicBlock(
const TargetMachine &TM) const {
assert(MBB.isBeginSection() && "Basic block does not start a section!");
SmallString<128> Name;
- Name = (static_cast<MCSectionELF *>(MBB.getParent()->getSection()))
- ->getSectionName();
+ Name =
+ (static_cast<MCSectionELF *>(MBB.getParent()->getSection()))->getName();
unsigned UniqueID = MCContext::GenericSectionID;
switch (MBB.getSectionID().Type) {