[llvm] r292024 - [TargetLowering] Simplfiy a bit. NFCI.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 14 12:09:30 PST 2017
Author: davide
Date: Sat Jan 14 14:09:29 2017
New Revision: 292024
URL: http://llvm.org/viewvc/llvm-project?rev=292024&view=rev
Log:
[TargetLowering] Simplfiy a bit. NFCI.
Modified:
llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp
Modified: llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp?rev=292024&r1=292023&r2=292024&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp (original)
+++ llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp Sat Jan 14 14:09:29 2017
@@ -264,10 +264,7 @@ bool TargetLoweringObjectFile::shouldPut
// in discardable section
// FIXME: this isn't the right predicate, should be based on the MCSection
// for the function.
- if (F.isWeakForLinker())
- return true;
-
- return false;
+ return F.isWeakForLinker();
}
/// Given a mergable constant with the specified size and relocation
More information about the llvm-commits
mailing list