[llvm] c764304 - [MC] Drop an unused rule about absolute temporary symbols
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 5 11:48:46 PST 2020
Author: Fangrui Song
Date: 2020-01-05T11:39:52-08:00
New Revision: c764304adc5ad52921957e8f7d14db8433eee613
URL: https://github.com/llvm/llvm-project/commit/c764304adc5ad52921957e8f7d14db8433eee613
DIFF: https://github.com/llvm/llvm-project/commit/c764304adc5ad52921957e8f7d14db8433eee613.diff
LOG: [MC] Drop an unused rule about absolute temporary symbols
Added:
Modified:
llvm/lib/MC/MCAssembler.cpp
Removed:
################################################################################
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp
index df1c49b2a06a..c7c663955ef7 100644
--- a/llvm/lib/MC/MCAssembler.cpp
+++ b/llvm/lib/MC/MCAssembler.cpp
@@ -163,10 +163,6 @@ bool MCAssembler::isSymbolLinkerVisible(const MCSymbol &Symbol) const {
if (!Symbol.isTemporary())
return true;
- // Absolute temporary labels are never visible.
- if (!Symbol.isInSection())
- return false;
-
if (Symbol.isUsedInReloc())
return true;
More information about the llvm-commits
mailing list