Skip to content

Commit 31db4db

Browse files
committed
Clean up warnings after a2c8cd1
1 parent 1dbb7a3 commit 31db4db

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ void AsmPrinter::emitLinkage(const GlobalValue *GV, MCSymbol *GVSym) const {
397397
case GlobalValue::CommonLinkage:
398398
assert(!TM.getTargetTriple().isOSBinFormatXCOFF() &&
399399
"CommonLinkage of XCOFF should not come to this path.");
400+
LLVM_FALLTHROUGH;
400401
case GlobalValue::LinkOnceAnyLinkage:
401402
case GlobalValue::LinkOnceODRLinkage:
402403
case GlobalValue::WeakAnyLinkage:

llvm/lib/MC/MCELFStreamer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ bool MCELFStreamer::emitSymbolAttribute(MCSymbol *S, MCSymbolAttr Attribute) {
203203
// defined.
204204
switch (Attribute) {
205205
case MCSA_Cold:
206+
case MCSA_Extern:
206207
case MCSA_LazyReference:
207208
case MCSA_Reference:
208209
case MCSA_SymbolResolver:

llvm/lib/MC/MCMachOStreamer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ bool MCMachOStreamer::emitSymbolAttribute(MCSymbol *Sym,
326326
case MCSA_ELF_TypeCommon:
327327
case MCSA_ELF_TypeNoType:
328328
case MCSA_ELF_TypeGnuUniqueObject:
329+
case MCSA_Extern:
329330
case MCSA_Hidden:
330331
case MCSA_IndirectSymbol:
331332
case MCSA_Internal:

0 commit comments

Comments
 (0)