[llvm] 31db4db - Clean up warnings after a2c8cd18128d3529992a86998d2bea80cceafff0
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 30 08:04:25 PDT 2020
Author: Benjamin Kramer
Date: 2020-04-30T17:01:30+02:00
New Revision: 31db4dbbbebd135c837014033a548eec15664ea8
URL: https://github.com/llvm/llvm-project/commit/31db4dbbbebd135c837014033a548eec15664ea8
DIFF: https://github.com/llvm/llvm-project/commit/31db4dbbbebd135c837014033a548eec15664ea8.diff
LOG: Clean up warnings after a2c8cd18128d3529992a86998d2bea80cceafff0
Added:
Modified:
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/MC/MCELFStreamer.cpp
llvm/lib/MC/MCMachOStreamer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 6127ed685ff6..69ae0494cd9e 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -397,6 +397,7 @@ void AsmPrinter::emitLinkage(const GlobalValue *GV, MCSymbol *GVSym) const {
case GlobalValue::CommonLinkage:
assert(!TM.getTargetTriple().isOSBinFormatXCOFF() &&
"CommonLinkage of XCOFF should not come to this path.");
+ LLVM_FALLTHROUGH;
case GlobalValue::LinkOnceAnyLinkage:
case GlobalValue::LinkOnceODRLinkage:
case GlobalValue::WeakAnyLinkage:
diff --git a/llvm/lib/MC/MCELFStreamer.cpp b/llvm/lib/MC/MCELFStreamer.cpp
index 8921c29944c0..49d863f258bf 100644
--- a/llvm/lib/MC/MCELFStreamer.cpp
+++ b/llvm/lib/MC/MCELFStreamer.cpp
@@ -203,6 +203,7 @@ bool MCELFStreamer::emitSymbolAttribute(MCSymbol *S, MCSymbolAttr Attribute) {
// defined.
switch (Attribute) {
case MCSA_Cold:
+ case MCSA_Extern:
case MCSA_LazyReference:
case MCSA_Reference:
case MCSA_SymbolResolver:
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp
index a59d082acc7d..2b1d1b28ea18 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -326,6 +326,7 @@ bool MCMachOStreamer::emitSymbolAttribute(MCSymbol *Sym,
case MCSA_ELF_TypeCommon:
case MCSA_ELF_TypeNoType:
case MCSA_ELF_TypeGnuUniqueObject:
+ case MCSA_Extern:
case MCSA_Hidden:
case MCSA_IndirectSymbol:
case MCSA_Internal:
More information about the llvm-commits
mailing list