aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCCodeView.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2018-01-12 18:05:40 +0000
committerSam Clegg <sbc@chromium.org>2018-01-12 18:05:40 +0000
commit5e102eeee6ef0b6da3a4d683469e9954c000a09c (patch)
treec85d91b5f6b1c353c3e52bdcfbd7fd133b64f778 /llvm/lib/MC/MCCodeView.cpp
parentedff13b9ded7f44609a3a88b7ae1ba8db3cba866 (diff)
downloadllvm-5e102eeee6ef0b6da3a4d683469e9954c000a09c.zip
llvm-5e102eeee6ef0b6da3a4d683469e9954c000a09c.tar.gz
llvm-5e102eeee6ef0b6da3a4d683469e9954c000a09c.tar.bz2
MC: Remove redundant `SetUsed` arguments in MCSymbol methods
We can probably take this a step further since the only user of the isUsed flag is AsmParser it should probably be doing this explicitly. For now this is a step in the right direction though. Differential Revision: https://reviews.llvm.org/D41971 llvm-svn: 322386
Diffstat (limited to 'llvm/lib/MC/MCCodeView.cpp')
-rw-r--r--llvm/lib/MC/MCCodeView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCCodeView.cpp b/llvm/lib/MC/MCCodeView.cpp
index 82b81cc..d14537c 100644
--- a/llvm/lib/MC/MCCodeView.cpp
+++ b/llvm/lib/MC/MCCodeView.cpp
@@ -507,7 +507,7 @@ void CodeViewContext::encodeInlineLineTable(MCAsmLayout &Layout,
if (!LocAfter.empty()) {
// Only try to compute this difference if we're in the same section.
const MCCVLineEntry &Loc = LocAfter[0];
- if (&Loc.getLabel()->getSection(false) == &LastLabel->getSection(false))
+ if (&Loc.getLabel()->getSection() == &LastLabel->getSection())
LocAfterLength = computeLabelDiff(Layout, LastLabel, Loc.getLabel());
}