Skip to content

Commit 2cedb28

Browse files
committed
MCSymbol: Remove unused IsTarget parameter from declareCommon
1 parent aa96e20 commit 2cedb28

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

llvm/include/llvm/MC/MCSymbol.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ class MCSymbol {
311311
/// \param Size - The size of the symbol.
312312
/// \param Alignment - The alignment of the symbol.
313313
/// \param Target - Is the symbol a target-specific common-like symbol.
314-
void setCommon(uint64_t Size, Align Alignment, bool Target = false) {
314+
void setCommon(uint64_t Size, Align Alignment) {
315315
assert(getOffset() == 0);
316316
CommonSize = Size;
317317
kind = Kind::Common;
@@ -332,15 +332,14 @@ class MCSymbol {
332332
///
333333
/// \param Size - The size of the symbol.
334334
/// \param Alignment - The alignment of the symbol.
335-
/// \param Target - Is the symbol a target-specific common-like symbol.
336335
/// \return True if symbol was already declared as a different type
337-
bool declareCommon(uint64_t Size, Align Alignment, bool Target = false) {
336+
bool declareCommon(uint64_t Size, Align Alignment) {
338337
assert(isCommon() || getOffset() == 0);
339338
if(isCommon()) {
340339
if (CommonSize != Size || getCommonAlignment() != Alignment)
341340
return true;
342341
} else
343-
setCommon(Size, Alignment, Target);
342+
setCommon(Size, Alignment);
344343
return false;
345344
}
346345

llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ void AMDGPUTargetELFStreamer::emitAMDGPULDS(MCSymbol *Symbol, unsigned Size,
886886
if (!SymbolELF->isBindingSet())
887887
SymbolELF->setBinding(ELF::STB_GLOBAL);
888888

889-
if (SymbolELF->declareCommon(Size, Alignment, true)) {
889+
if (SymbolELF->declareCommon(Size, Alignment)) {
890890
report_fatal_error("Symbol: " + Symbol->getName() +
891891
" redeclared as different type");
892892
}

0 commit comments

Comments
 (0)